Python Basic Tutorial

python

Python is a high-level programming language for interpreted, object-oriented, and 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, the Python source code also follows the GPL (GNU General Public License) protocol.



Who is suitable for reading this tutorial?

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



You need to know before you can learn this tutorial

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



Executing Python programs

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

Instance(Python 2.0+)

#!/usr/bin/python The Python 3.0+ version already uses print as a built-in function, and correctly outputs the "Hello World!" code as follows: Instance (Python 3.0+) #!/usr/bin/python3 Print("Hello, World!")

The Python 3.0+ version already uses print as a built-in function, correctly outputting the "Hello World!" code as follows:

Instance (Python 3.0+)

#!/usr/bin/python3 print("< Span class="hl-string">Hello, World!")

print "Hello, World!"






welookups is optimized for learning.© welookups 2018 -
All Right Reserved and you agree to have read and accepted our term and condition