TOPIC 5: Python Lists
7. Summary
Summary
-
Lists store multiple items in a single variable.
-
Lists are created using square brackets [].
-
Lists are ordered.
-
Lists are changeable.
-
Lists allow duplicate values.
-
List indexing starts from 0.
-
The len() function returns the number of items in a list.
-
Lists can contain different data types.