- List: slices, indexes, references
- Build list: a=[1,2,3]
- references:a_ref=a, and a point to the same address
- List common actions:copy operation b=a[:]
- A.append(3): Add an element after list a
- A.insert(1, 20): Inserts 20 into the 1 position of List A
- A.pop(): pops up the last element of the list
- A.sort (): Sort the list
- A.reverse(): Anti-sorting the list
- del a[1]: Remove the first element of the list
- Nested, multiple types coexist into a list, such as c=[1,2, ' 123 ', ' ABC ']
- A.count (x):A contains the number of X (count on an element)
- Tuples: Equivalent to immutable lists, defined with (), equivalent to constants, can only be accessed not modified in situ
- Common operations: Have index, Count method, can be nested variable list (deprecated), tuple () can convert a list to a tuple
Notes (doing things in Python)--variables (lists, tuples)