Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Python Getting Started tutorial


May 10, 2021 Python2


Table of contents


Python Getting Started tutorial

Python Getting Started tutorial

Python is an interpretatory, object-oriented, advanced programming language for dynamic data types.

Python was invented by Guido van Rossum at the end of 1989 and the first public release was in 1991.

Like the Perl language, the Python source code follows the GPL (GNU General Public License) protocol.


Who is fit to read this tutorial?

This tutorial is suitable for developers who want to learn the Python programming language from scratch. Of course, this tutorial will also delve into some modules to give you a better understanding of Python's applications.



You need to know before you take this tutorial

Before you move on to this tutorial, you should understand some basic computer programming terminology. If you've studied programming languages like PHP, ASP, etc., it will help you understand Python programming faster.

Note That all the code in this tutorial is compiled in the Python 2 compiler, and there is a syntax incompatibility with the Python 3 compiler, and if necessary, it is recommended that scholars download the Python 2 compiler on the Python website.

Execute the Python program

For most programming languages, the first getting started programming code is "Hello World! " , the following code is to use Python to output "Hello World! ":

Example (Python 2.0 plus)

#!/usr/bin/python
print "Hello, World!";

Run an instance . . .

The Python 3.0 Plus version already has print as a built-in function that correctly outputs "Hello World!" "The code is as follows:

Example (Python 3.0 plus)

#!/usr/bin/python
print("Hello, World!");

Run an instance . . .

Start learning Python now!

Introduction to the Python IDE (Integrated Development Environment).

Python 3.X version of the tutorial