CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #32

Slicing A Long Word

easyStrings

📄 Code

Read carefully — what does this print?
1word: str = 'programming'
2print(word[0])
3print(word[-1])
4print(word[3:7])
5print(word[:3] + word[-3:])
6print(len(word))

🎯 Your Answer