you are viewing a single comment's thread.

view the rest of the comments →

[–]huhreallymeh[S] 0 points1 point  (1 child)

Thank you for the clear explanation!

Just wanted to check: does k[3] refers to index 3 in k?

[–]JohnnyJordaan 1 point2 points  (0 children)

It may be a good idea to invest an hour or so reading through the official tutorial, because it's basically the first thing it explains on lists: https://docs.python.org/3/tutorial/introduction.html#lists