Lists

Let’s learn about the list data type and some basic methods related to it in Python.

Now that we’ve gone over how strings are sequences of items, let’s move on to another very useful data type in Python—list. Below are some key points about lists:

  • Lists are positionally ordered collections of arbitrarily typed objects. In other words, they can take any data type.
  • Lists are created using
...