The Day1 of Python basics

Source: Internet
Author: User

#前言

Python is a computer programming language. Computer programming language and our daily use of natural language is different, the biggest difference is that natural language in different contexts have different understanding, and the computer to perform tasks according to the programming language, you must ensure that programming language written in the program can never be ambiguous, so, any programming language has its own set of syntax, The compiler or interpreter is responsible for translating the syntax-compliant program code into the machine code that the CPU can execute, and then executing. Python is no exception.

Python's syntax is simple, indented, and the code is written like this:

# print absolute value of an integer:a = 100if a >= 0:    print aelse: print -a

# 1. Data type, variable

# # #整型

The Day1 of Python basics

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.