pyothn Flashcards
(2 cards)
1
Q
what is a list in python
A
a list is a container to collect items. use the square brackets and separate the items with a comma
2
Q
how do you access multiple items in a list
A
slicing uses the square brackets and colons
[stop:start:step]