Learning Python from Codecademy

Source: Internet
Author: User

---syntax---

1. Booleans:true and False

2. Assin and reassign value to Variable:spam =3

3. Whitespace:indent (indentation), blank spaces of four blank spaces

4. Interpreter (interpretation): Run your code line by line, and check for any errors

5. Single line comment:use the # sign

6. Multi-line comment:starting each line with #, or use a set of triple quotation marks "" "..." "" "

7. Exponent (exponentiation): Use * *, like this 10**2

8. Modulo:get the reminder from division If you use decimal, you should set like this 15.0/100 not 15/100

Learning Python from Codecademy

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.