PythonCookAll activities
Tier 0 · Predict the output

What does the slice give?

Predict the output

Read the code and type what it prints.

1word = "python"
2print(word[1:4])