Python Novice Learning basic data type--variable

Source: Internet
Author: User

The variables for Python are described in this way:

A variable is a value stored in memory, and by the name of the variable, we can access the value of the variable.

In these lines of code, Price,count and sum are variables, Python is a dynamic type language, and variables are not required to be declared, so long as they are assigned before the variable is used, the variable is created only if it is assigned a value. For assignments, we'll go over the details later in this post.

Python has 6 standard variable data types:

  • Numbers (digital)
  • String (String)
  • List (lists)
  • Tuple (tuple)
  • Set (SET)
  • Dictionary (dictionary)

We only do a simple understanding here, the specific content will be introduced once again ~

Look at the code, experience it:

More content learning in the code bud Net

Http://www.mayacoder.com/lesson/index

Python Novice Learning basic data type--variable

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.