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

Changing Items By Index

easyLists

📄 Code

Read carefully — what does this print?
1scores: list[int] = [10, 20, 30]
2scores[1] = scores[1] + 5
3scores[-1] = 0
4print(scores)
5print(len(scores))

🎯 Your Answer