Introduction to Python numbers

Source: Internet
Author: User
Introduction to Numbers

This section reads as follows:

  • Introduction to Numbers
  • The composition of the Python program
  • Objects in Python
  • Python's numeric type view original
Introduction to Numbers

Numbers indicate the number or amount of integers, such as age, floating-point numbers (decimals), for example, price, negative numbers, and so on. Numbers can perform some addition, subtraction, multiplication, and other operations, and there are built-in functions to operate, such as: take maximum, minimum, absolute value, and so on.

The composition of the Python program
  1. Package and its child packages
  2. Package contains modules
  3. Inside the module contains statements
  4. Statement contains an expression
  5. expression creation and processing of an object
Objects in Python

All types in Python are objects, Python's built-in objects:

  1. Digital
  2. String
  3. List
  4. Dictionary
  5. Meta-group
  6. File
  7. Collection
  8. Other types (Type, None, Boolean)
  9. Programming units (functions, modules, classes)

Once an object is created, it is bound to a specific set of operations, for example: numbers can be subtraction and so on

Number types for Python:
  1. Integers and floating-point numbers
  2. Plural
  3. Decimal number for fixed precision
  4. Rational Fractions
  5. Boolean type
  6. Infinite integer Precision
  7. Various digital built-in functions and modules

Introduction to Python numbers

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.