Python is an interpreted language. We can either collect sequences of commands into text files and save this to a file as a Python program. It is convention that these files have the file extension “.py",for example test.py. We can also enter individual commands at the Python prompt which are immediately evaluated and carried out by the Python interpreter. This is very useful to understand how to use certain commands (often before one puts these commands together in a longer Python program ) To start the interpreter we can either On windows/Linux : start IDLE OR On windows: Find the MS-DOS prompt, and type python followed by the return key. On Linux/Unix/Mac OSX: Go to the terminal type python followed by the return key. The python prompt (the chevron >>>) signals that Python is waiting for input from us: >>> We can now enter commands, for example 4+5, followed by the RETURN key. >>> 4+5 9 >>> Once w...
Python for ktu students-by Dr Binu V P-9847390760. This Blog is written using python 2.x. Visit the new blog pythonformlktuminor.blogpost.com for python 3.x