Introduction To Python - shahzade baujiti

Breaking

Wednesday, April 24, 2019

Introduction To Python

Introduction To Python

Why Python was created?
In late 1980s, Guido Van Rossum was working on the Amoeba distributed operating system group and the problem with that was less extensibility. So, he wanted to create a new language that was must be syntax friendly which could access the Amoeba system calls. So, he decided to create a language that was extensible and the new developed language was named as python.


Version Release Data

Python 1.0 (first standard release) January 1994
Python 1.6 (Last minor version) September 5, 2000
Python 2.0 (Introduced list comprehensions) October 16, 2000
Python 2.7 (Last minor version) July 3, 2010
Python 3.0 (Emphasis on removing duplicative constructs and module) December 3, 2008
Python 3.5 (Last updated version) September 13, 2015

Why should a user be choosing Python over other languages:

1.) Easy Elegant Syntax
Programming in Python is fun.
The syntax feels natural.
Easier to understand and write Python code.
Illustration of an code:
     
x = 10
y = 20
sum = x + y
print(sum)
Copy
Note: Copy and Paste Code into Compiler
Open Compiler 

2.) Not overly strict :

You dont need to define the type of a variable in Python. Also, it's not necessary to add semicolon at the end of the statement.
Python enforces you to follow good practices (like proper indentation).
3.) Expressiveness of the language

Python allows you to write programs having greater functionality with fewer lines of code. Here's a link to the source code of Tic-tac-toe game with a graphical interface and a smart

Story behind the name Python

Guido van Rossum, the creator of the Python language, named the language after the BBC show "Monty Python's Flying Circus". He doesn't particularly like snakes that kill animals for food by winding their long bodies around them and crushing them.


Next

No comments:

Post a Comment