245,974 views
33 votes
33 votes
What does the following code print?

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

User Patrick Peccatte
by
2.6k points

1 Answer

15 votes
15 votes

Answer:

The code prints "theo".

Step-by-step explanation:

User Apgsn
by
3.1k points