85.1k views
0 votes
Look at the following Python code:

word1 = "Umpire"
print(word1[1])

Which character will be indexed from word1 and printed to the screen? (5 points)

1. U
2. m
3. p
4. i

User S P
by
5.7k points

1 Answer

4 votes

Answer:

2. m

Step-by-step explanation:

Computers count starting from 0 so 1 would actually be the 2nd letter

User Randomsock
by
6.4k points