What is Python ?
- Python is a high level Object Oriented Programming Language.
- Python is an interpreted language.
- Name of Python interpreter is python.
History of Python
- Python language is created by Guido Van Rossum in Netherlands.
- First version of Python is released in 1991.
- Programs written in Python are typically much shorter than equivalent C, C++ or Java code.
- Python source code have extension .py .
- By default Python source code files are treated as encoded in UTF-8.
- Python language don’t have any compiler. Python have only interpreter.
- You can download Python from here.
- The most stable version of Python is Python 2.7. You can download Python 2.7 from here.
- First you need to install Python to your computer system.
- You can run Python programs by mainly 3 ways –
- Using IDLE
- Using Notepad
- Using PyCharm.
Hello World Using IDLE.
- Type IDLE in start menu.
- Click on IDLE (Python 3.5 64-bit) (Version may change). Then a new IDLE will be opened like this.
- Now type the following statements –
print (“Hello world”)
print (‘Hello World’)
- Earlier versions of Python supports print statement and print() function both. Since Python 3 only print() can be used.
- Don’t mix single quotes with double quotes. Hence print(“Hello World’) is syntax error.
- Semicolon (;) at the end of Python statement is optional.