Arrays Flashcards

(3 cards)

1
Q

How to search through arrays

A

name=input(“please enter the name tou are loooking for”)

for record in scores:

for item in record:

if item == name:
print (record)

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

What do arrays start from

A

0

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

How to select certain item from array

A

Use square brackets

Print(scores[0])
Prints the first score

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