1. Introduction
1. Introduction
But officially Python was made available to public in 1991. The official Date of
Birth for Python is: Feb 20th 1991
Where we can use Python: We can use everywhere. The most common important
application areas are
9. For IOT
Features of Python:
1. Simple and easy to learn:
2. Freeware and Open Source:
4. Platform Independent:
5. Portability:
6. Dynamically Typed:
8. Interpreted:
9. Extensible:
10. Embedded:
Limitations of Python:
1. Performance wise not up to the mark b'z it is interpreted language.
Flavors of Python:
1.CPython: It is the standard flavor of Python. It can be used to work with C
lanugage Applications
Installation:
Visit https://www.python.org/downloads/ and download the latest version.
At the time of this writing, it was Python 3.5.1 The installation is just like any
other Windows-based software.
Note that if your Windows version is pre-Vista, you should download Python
3.4 only as later versions require newer versions of Windows.
CAUTION: Make sure you check option Add Python 3.5 to PATH . To change
install location, click on Customize installation , then Next and enter
Right click on Computer from your desktop and select Properties or click Start
and choose Control Panel -> System and Security -> System .
Click on Advanced system settings on the left and then click on the Advanced
tab. At the bottom click on Environment Variables and under System
variables , look for the PATH variable, select and then press Edit .
Go to the end of the line under Variable value and append ;C:\Python35
(please verify that this folder exists, it will be different for newer versions of
Python) to the end of what is already there. Of course, use the appropriate
folder name. If the value was %SystemRoot%\system32; It will now become
%SystemRoot%\system32;C:\Python36 Click OK and you are done. No restart
is required, however you may have to close and reopen the command line.
If you don't understand what that means, create a new folder and use that
location to save and run all your Python programs:
/tmp/py on Mac OS X
/tmp/py on GNU/Linux
C:\py on Windows
To create the above folder (for the operating system you are using), use the
mkdir command in the terminal, for example, mkdir /tmp/py .
IMPORTANT: Always ensure that you give it the file extension of .py , for
example, foo.py . To run your Python program:
2. Change directory to where you saved the file, for example, cd /tmp/py
3. Run the program by entering the command python hello.py . The output is
as shown below. $ python hello.py hello world