Why Python ?
- Top 5 most popular language and growing rapidly
- Can be used to create websites
- Predicting stocks machine learning (using sci-kit)
- Data analysis using Pandas
- Game Development (PyGame)
It was a Dutch programmer, Guido Van Rossum, who wrote Python as a hobby programming project back in the late 1980s. Since then it has grown to become one of the most polished languages of the computing world.
| Python Version | Date of Release |
|---|---|
| Python v0.1.0 | (Macintosh support)2nd Jan’1992 |
| Python v0.9.5 | (The First Edition) 1990 |
| Python v1.0.0 | 26th Jan’1994 |
| Python v1.1.0 | 26th Jan’1994 |
| Python v1.2.0 | Apr’1995 |
| Python v1.3.0 | Oct’1995 |
| Python v1.4.0 | Oct’1996 |
| Python v1.5.0 | 3rd Jan’1998 |
| Python v1.6.0 | (Latest updated version) 5th Sep’2000 |
| Python v2.0.0 | (Added list comprehensions) 16th Oct’2000 |
| Python v2.7.0 | (Latest updated version) 3rd Jul’2010 |
| Python v3.0.0 | 3rd Dec’2008 |
| Python v3.6.X | (Latest updated version) Mar’2017 and |
Python Features
- Code quality
- Developer Productivity
- Code portablity
- Built-in and External libraries
- Component integration
- Free to use, Modify redistribute
- Object oriented from the core
Installation
Recommended to install anaconda from the official website https://anaconda.org/ Anaconda is a free and open source distribution of the Python and R programming languages for data science and machine learning related applications, that aims to simplify package management and deployment.
**Lets begin with **
print("hello world")
Python code can be typed and run directly from the console step by step or can be run from the file. The file extension of the python is *.py
More (Python as a calculator )
Addition and subtraction
print(5 + 5) print(5 - 5)
Multiplication and division print(3 * 5) print(10 / 2)
Exponentiation print(4 ** 2)
Modulo print(18 % 7)
How much is your $100 worth after 7 years (assume interest is 10% per annum) ?
Tips
Python is perfectly suited to do basic calculations. Apart from addition, subtraction, multiplication and division, there is also support for more advanced operations such as: Exponentiation: This operator raises the number to its left to the power of the number to its right. For example 4**2 will give 16. Modulo: % This operator returns the remainder of the division of the number to the left by the number on its right. For example 18 % 7 equals 4.