We open the idle and then enter:
Print ("Hello World")
Then the screen will print Hello World, which we have to do a description: We enter two print function, the first is right, the second is really wrong, this is the Python version of the problem, after 3.0, print becomes a function
If idle is version 2.7, then two inputs are correct
Then we can notice that the color of print is distinguished from the other, this is called syntax highlighting, idle through different colors tell us the meaning of different words, so a better understanding of the program.
If we enter an error, it will be the same as the first picture, with the error message (red).
Extension Description: Print is a keyword, display magenta, it is also reserved words for special purposes, there will be more similar keywords, you can pay attention to.
This is the section here, thank you.
------------------------------------------------------------------
Click to jump 0 basic python-Catalogue
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
0 Fundamentals python-1.4 Hello World