25.4k views
2 votes
Wrong answers will be reported

True or false
This code print the letter “h”
planet = “Earth”
print(planet[5])

User Alex Weber
by
3.7k points

1 Answer

3 votes

Answer:

False

Step-by-step explanation:

string indexes start at 0 so planet[5] does not exist

User Peter De Winter
by
3.9k points