DEV Community

Ezhil Abinaya K
Ezhil Abinaya K

Posted on

Python Installation and Versions

Python Setup

  • Go to the python official website https://www.python.org/.
  • Click the download latest version button.
  • After the installation completed , You will find python is installed in your system.

Python 2 vs Python 3
Python 2 was introduced in the year 2000.It was created by the
BeOpen Python Labs team.After the introduction of python 3, python 2 could not find a lot of its usage. It is official end by the year 2020.Python 2.7 is the latest version in python 2.

  • Python 2.0 – October 16, 2000
  • Python 2.1 – April 17, 2001
  • Python 2.2 – December 21, 2001
  • Python 2.3 – July 29, 2003
  • Python 2.4 – November 30, 2004
  • Python 2.5 – September 19, 2006
  • Python 2.6 – October 1, 2008
  • Python 2.7-July 3, 2010

Python 3 was introduced in the year 2008. Python 3 is backward incompatability issue. Here, wt is compatability ? compatability means matching .Incompatability means theirs version are sololey work well but not together.Forward Compatability means older software works on a newer version. we can switch 2 to 3 version.Backward compatability means newer software works on an older version. we can switch back to java 10 to java 8 version.

name="Ezhil"
"welcome",name,"!"
//('welcome', 'Ezhil', '!')
Enter fullscreen mode Exit fullscreen mode

Here,

  • name represents the reference variable /identifier
  • = represents the assignment operator (The value present at the right side gets assigned to the left side).
print("welcome",name,"!")
//welcome Ezhil !
Enter fullscreen mode Exit fullscreen mode

In this output , one small wrong appears.We didnt give a space before exclamatory symbol.But in the output space appears.Because of comma separator. Comma separator takes a space before and after.


print("welcome"+name+'!')
//welcomeEzhil!
Enter fullscreen mode Exit fullscreen mode

In this output, String concatenation process done. String concatenation means joins the string together.
Here, Print is a function in python, method in java, sub procedure in query language. Welcome,name, ! are all arguments passed to the print() function.
("welcome"+name+'!') --- 1 argument
('welcome', 'Ezhil', '!') --- 3 arguments.
Reference
https://www.interviewbit.com/blog/difference-between-python-2-and-3/

Top comments (0)