r/PythonLearning • • Aug 17 '25

What's wrong

Post image
49 Upvotes

45 comments sorted by

View all comments

1

u/HotLaMon Aug 17 '25

n = 5
5 is out of range of your list which contains index: 0, 1, 2, 3, 4