← Back to Question List
Python Code Walkthrough #32
Slicing A Long Word
📄 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))