0 Fundamentals python-1.4 Hello World

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.