Python Basic Grammar Review II

Source: Internet
Author: User

1
2
3
4
5
6
7
8
9
Print "How is old is you?",
Age = Raw_input ()
Print "How tall is You?",
Height = raw_input ()
Print "How much does you weigh?",
Weight = Raw_input ()
Print "So, you ' re%r old,%r tall and%r heavy."% (
Age, height, weight)
Note
Notice that I put a comma (comma) behind each line of print, right? In this case, print will not end with a new line break.
The line ran to the next line.

Remember that%r is debug-only, it shows the original representation of the character, and%s is for display to the user

Python Basic Grammar Review II

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.