Python Lists Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a list?

A

Lists
In Python, lists are ordered collections of items that allow for easy use of a set of data.

List values are placed in between square brackets [ ], separated by commas. It is good practice to put a space between the comma and the next value. The values in a list do not need to be unique (the same value can be repeated).

Empty lists do not contain any values within the square brackets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly