Saturday 25 June 2016

Python In A Hour

Learn Python in the couple of minutes

Learn basics of python in couple of minutes just go through this post. This sounds crazy, no it doesn't. Don't afraid of the Python. We are going to learn Python but before that we should know what exactly Python is, Python is the high-level,widely used general purpose programming language. It is dynamic , simple to learn and understand.
Python 2 and Python 3  are available,   Pyhton 2 is old one and it is easy for the new comers. With the Python application file you will get IDLE(Integrated Development Environment). Pyhton firstly combines its code into the byte code and then executes it in a virtual machine.
Every programming languages are started with Hello,World program it doesn't have specific reason. it doesn't have any specific reason  only thing is that this is the easiest way to start. In Python we don't need to write things at the start like in #include<stdio.h> or something. To print the hello world just write the code as given below

print "Hello,World!" or
print 'Hello,World!'

output
       Hello,World!

There is no any restriction of double inverted ("") or single inverted ('').In Python we don't need to terminate the line compiler automatically terminate by checking the space. Lets know the keywords of the python , to know the keywords write the program as follows

import keyword
print (keyword.kwlist)

after compiling this code you will get the list of the keywords in the python as shown here,As i said earlier python is a dynamic language it means that Python is dynamically typed language.

some of the parts of this post will be uploaded soon wait till 5 march

if any query or any mistake by me to correct  comment here.

No comments: