Posts

Learning_Python_Chapter_2_Part_2

Chapter 2 Part 2  of 2 Hello everyone, Learning_Python_Chapter_2_Part_1 was very difficult to write and understand, I’ll try to make things more easier this time. First thing I need is to not get reported by my audience for roasting their brain.  If you have any doubts with any concept please provide comments. Lets assume that you are a genuine blog reader and then move forward.  Let's recall the bubble diagram and example of Roti making process from last blog. FROZEN BINARIES On our computer, when we want to open any application then we simply do click on it, we can make our python program to work like that. When ByteCode is created in our system, all the important instructions are stored in the form of binaries. This process happens at the part of compilation. The title explains that we freeze these binaries to use them later. In short, it is possible to turn your Python program into an executable file, known as Frozen Binaries in the python

Learning_Python_Chapter_2_Part_1

Chapter 2 Part 1  of 2 Today, we are going to start chapter 2 and skipping a few points from chapter 1, don’t worry, I’ll cover them later. Let’s start with the most important concept.  Introducing the Python Interpreter  Firstly, what is an interpreter? As we know, languages like Python are not platform dependent. That means, scripts that we are writing are compatible on windows,Linux or any other operating system. Also, it is not hardware dependent; we can run a Python script on Intel chip or any other like AMD. So, what give Python that ability? “An interpreter is a kind of program that executes another program” Woo... a program to run another program. Designing or writing these type of systems are currently beyond our reach but what we can do now is, we can learn them or understand them and can use them. Simple! “ The interpreter is a layer of software logic between your code and the computer hardware of your computer ” When we install py

Learning_Python_Chapter_1_Part_3

Chapter 1 Part 3  of 3 If you are reading part 3 then I think you have read part 1 & 2, which I think is positive response for my blog and for this I’m very thankful to you…  (Let me clear one thing, in the whole blog I’m not going to say about the version of python like 2.X or 3.X, this concept is the little bit confusing and this blog can be a Not-So-Easy-Blog) How to introduce python? -           Python is general-purpose language that is often applied in scripting roles.     Better one, Python is known as a general-purpose programming language that blends procedural, functional and object-oriented concepts. After reading the first statement,  what do you mean by a script?                   According to Google, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator. We can compare this operation with washing machine,  after pressing first butto

Learning_Python_Chapter_1_Part_2

Chapter 1 Part 2  of 3 Hey there, till date I don’t know how many people have read Chapter_1_Part_1, Leave it! Getting more hits is not my purpose. So, when I went for buying this book 'Learning Python by Mark Lutz', "How to learn 1600 paged book?" was my second question. The first question remained as -‘Why there is a Rat on Python’s book ???’ After going through few sites and blogs I got to know that there is a very creative hidden message behind it, Consider you as a Rat in a jungle where only Python and Rat are alive. To survive this scenario, Rat has to learn the Python very deeply. It’s habits, It’s routine. Similarly to survive in today’s world we - Rats - have to learn this Python. If we know Python we can find ways to not become the food of Python. “When people create a painting or a sculpture, they do so largely for themselves; the prospect of someone else changing their work later doesn’t enter into it.” (P.S: not mine) While lea

Learning_Python_Chapter_1_Part_1

Chapter 1 Part 1 of 3 Hello everyone, first of all, I wanna ask you that is Python ‘A Simple language’? Because when anyone is talking or people who even don’t know ABCD of programming tells me that “Yeah! Yeah! It is a simple language!”, first thing,we can judge these people by this sentence. To clear this doubt I've bought a book ‘Learning Python by Mark Lutz’ and after reading first 3 chapters, my only wish is to give a slap on the face by the chair to the people who were talking about "simple python". Now, Let me tell you my background, I’m Mr Not-So-Good-English, I have completed my engineering in Electronics stream. Also I have learnt various technologies on my own like C, C++, Java, PHP, MySQL, Data structures, Servlets, JSPs, Networking, Embedded Systems and now I think this is good time to start with Python. Let’s see how my existing object oriented and other technology knowledge is useful for ‘Learning Python’ process.