Python 3 Tutorial
The 3.0 adaptation of Python, regularly alluded to as Python 3000, or Py3k for short. This is a bigger overhaul than the past form of Python. All together not to present an excessive amount of bulky, Python 3.0 was structured without thinking about in reverse similarity.
View python version
We can utilize the accompanying direction to see the adaptation of Python we use in the order window (Windows utilizes win+R to raise the cmd run box):
The above direction execution results are as follows:
You can likewise enter Python's intelligent programming mode to see the version:
Python 3.3.2 (v3.3.2: d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>>
The first Python 3.x program
For most programming dialects, the primary introduction programming code is "Hi World!", the accompanying code is to yield "Hi World!" utilizing Python:
Instance (Python 3.0+)
You can save the above code in the hello.py file and execute the script file using the python command.
$ python3 hello.py
The output of the above command is: