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

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

how do you access multiple items in a list

A

slicing uses the square brackets and colons
[stop:start:step]

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