79.5k views
5 votes
What does the following code print?

s = 'theodore'
print(s[:4])

1 Answer

7 votes

Answer:

The code prints "theo".

Step-by-step explanation:

User Jiawei Yang
by
5.6k points