Python basics: day1, pythonday1

Source: Internet
Author: User

Python basics: day1, pythonday1

# Preface

Python is a computer programming language. The computer programming language is different from the natural language we use everyday. The biggest difference is that the natural language has different understandings in different contexts, while the computer needs to execute tasks according to the programming language, it is necessary to ensure that the program written by the programming language cannot be ambiguous. Therefore, any programming language has its own set of syntax, the compiler or interpreter is responsible for converting syntactic-compliant program code into a machine code that can be executed by the CPU and then executing it. Python is no exception.

The syntax of Python is relatively simple and indented. The code written is like the following:

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

#1. Data Type, variable

### Integer

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.