Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 2.57 KB

File metadata and controls

80 lines (57 loc) · 2.57 KB

Why Python ?

  1. Top 5 most popular language and growing rapidly
  2. Can be used to create websites
  3. Predicting stocks machine learning (using sci-kit)
  4. Data analysis using Pandas
  5. 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

  1. Code quality
  2. Developer Productivity
  3. Code portablity
  4. Built-in and External libraries
  5. Component integration
  6. Free to use, Modify redistribute
  7. 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.