Start with "Hello World"

Source: Internet
Author: User

What to write Python,python program how to run it?

When we practice python in Windows, we can use Python's own idle.

Idle is a python shell,shell means "shell", is a way to interact with the program by typing text!

Open idle, we see >>> this prompt, meaning to tell you that Python is ready, waiting for you to enter Python instructions.

Next, we'll enter the "Hello world" that we're most familiar with.

Once the input is complete, tap and enter (enter)

Idle a shortcut, alt+n the previous statement, alt+p the next statement

I typed the print here with parentheses, and a lot of people are knocking print without parentheses, OK, we'll also knock on the non-parenthesized

Will prompt you for the wrong syntax, this is because Python2 write this is not a problem, Python3 and Python2 incompatible, so Python3 does not support such a notation.

We're trying to enter something new.

We see that the addition of data can be calculated, and the multiplication of large numbers can be calculated, the addition of strings to indicate the connection

The following attempt is made

When the string is multiplied by a number, the string is printed as many times as the number. into addition? Hint, type error, how the string type and int type are added.

Well, we've had our first experience with Python, and there will be more practice in the back, and embark on a journey to learn python.

Python has a lot of editors, when we learn python well, when we start using Python to write a project, or a Python script, you can use the following editor or IDE

Editor: Sublime, Atom, notepad++

Ide:pycharm, Eclipse

What should I use? It's a habit to look at yourself.

Start with "Hello World"

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.