Python Notes _ First article _ Lad work _5.python list type of data type (list)

Source: Internet
Author: User
Tags python list

The sequence in Python is the most basic data structure. Each element in the sequence is assigned a number (his position or index), the first index is 0, the second index is 1, and so on. Python's list data type is similar to an array in C, but the difference is that a list data type can contain elements of any type. The column represents one of Python's most commonly used data types, and he can appear as a comma-separated value within a square bracket. Like a string also has additions and deletions to change the operation. So the list is an ordered set.

  Note: If there is only one element in the list, such as [12,], you need to add a comma. The purpose is to misinterpret the parentheses in the mathematical sense.

1. Simple application of the list

1.1 Creating a list

2. Application of a list of common built-in functions

(Continuous edit ... )

Python Notes _ First article _ Lad work _5.python list type of data type (list)

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.