Saturday, December 20, 2014

Variables

Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.

Source: example5.py

Output: Python Shell
 Reference: www.tutorialspoint.com

Python Comments

Comments is very useful to make your program easier to read and it serves like a torch on your code so that it will easier for you to debug your code or perhaps others as well can follow your code accordingly.

How to write comment in Python

Input Function

Input function read string from a standard input.

Source File: example3.py

Output: Python Shell

Friday, December 5, 2014

Print Function

Print is a built-in function in python which printout objects to a standard screen.

Source: example2.py

Output: Terminal

My First Python Program

Hello World!

Source: example1.py
Output: Terminal

Python Editors

There are different types of editor available which you can use for your python projects. I am not saying that other editor is better than the other but it is up to you which editor you will be working comfortably.


Reference: Python Editors

Working Around Python Shell

The Python shell works as a playground to codes you want execute before you actually use them in a python program. You can even ask for specific details on how to use or an information about a module by typing the help() on the python shell.



Python IDLE


Python Interactive Shell


What is Python?

Python is widely used general-purpose high-level programming language. Its design philosophy emphasizes code readability and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale.