100k views
6 votes
what would be the result of running these two lines of code? symptoms = ["cough" "fever", "sore throat", "aches"] print (symtoms[3])

User Spersico
by
4.6k points

1 Answer

9 votes

"aches"

an array starts at 0 so spot the 3 is spot 4

[1,2,3,4]

arr[3] = 4 in this case

User Robert Audi
by
4.5k points