Why write the print ' Hello World ' hint invalid syntax under Python?

Source: Internet
Author: User
The use of python3.3, Baidu has been checked because of the version of the problem. But I do not have a companion to study the document AH. Who can offer me a copy? How do you write Hello World under python?

Reply content:

After Python 3, print is already a function rather than a keyword. Please use the correct syntax:
print ("Hello World")
this may be one of the wrong decisions of Python

The compatibility of any good programming system with the existing code should be paramount. Linus has always been asking for Linux Abi/api, so Linux kernel has been a benchmark for open source projects for so many years. I just want to ask: Why not check the document?

rtfm!!! Compatibility is too silly. I'm a novice, too.
See is based on the 2.5 version of the win-write textbook,,, and then Ubuntu preinstalled on the 2.7 ... Win above I download is 3.3 .... So now win above learn.
Just press the textbook to write the first print program,,,, prompted me invalid syntax .... Do not look at this post,,, I will be depressed down ... T_T, I want to uninstall 3.3 ... Windows Server on the 2.7.3, the personal notebook with 2.7.5,linux slag slag unexpectedly comes with or 2.4 version, the migration headache died, this method does not support, that method to replace,, ah ah ah ah why not 2.X? Many of the newer versions of Python are now compatible with previous versions, and many open source projects still use 2.6 or 2.7, and the simple print syntax is different.
  • 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.