Python 3 (a.k.a. “Python 3000” or “Py3k“) is a new version of the language that is incompatible with the 2.x line of releases. Compared to Python2.x, Python3 remains similar yet on some detailful issues, such as dictionaries and strings, it has changed noticeably. To avoid unnecessary historical burden, Python3 is designed incompatibly with Python2.x.

To install Python3, you merely need to go to Python’s official website and choose a specific version to download. After downloading it, just install it as you install any other common softwares. I assume you have enough ability to accomplish this step.

It should be noticed that, after January 1, 2020, Python2.x would not be maintained any longer.

See Python’s version

To see which version your Python3 is, you can run the following command in the terminal (Use win+R to launch terminal on Windows OS).

python -V

Here is the output:

Python 3.7.6

The other way to find your Python3’s version is to simply launch IDLE, and it will display info like this:

Python 3.7.6 (v3.7.6:43364a7ae0, Dec 18 2019, 14:18:50) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.

Your First Python3.x Programme

By convention, we try to print “Hello World”.

print("Hello World!")

Save the above codes into a file, like Afterwards run the following command in the terminal:

$ python3

You will get:

Hello, World!

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *