Python basic in... LOGIN
Python basic introductory tutorial
author:php.cn update time:2022-04-18 16:14:50

Python basic tutorial


python.jpg

#Python is an interpreted, object-oriented, high-level programming language with dynamic data types.

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

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

Start learning Python now!



Who is suitable 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 go into depth on some modules to give you a better understanding of Python applications.



What you need to know before following this tutorial

Before proceeding with this tutorial, you should know some basic computer programming terminology. If you have studied PHP, ASP and other programming languages, it will help you understand Python programming faster.



Execute Python program

For most programming languages, the first introductory programming code is "Hello World!", the following code uses Python to output "Hello World ! ":

Instance

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

Run Instance»

Click the "Run Instance" button to view the online instance

Python 3.0+ version has used print as a built-in function, and correctly outputs "Hello World!" The code is as follows:

Example

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

Run Example»

Click the "Run Example" button to view the online example


Related articles

Python IDE (Integrated Development Environment) Introduction

Python coding standards (Google)

Tutorial for Python 3.X version

php.cn