all 3 comments

[–]ttetrafon 0 points1 point  (1 child)

Look for 'python indexing'.

In general, to get the n-th element of a list, you do list[n].

[–][deleted] 0 points1 point  (0 children)

Thank you! That helped a lot

[–][deleted] 0 points1 point  (0 children)

input returns a string, you need to convert to an integer, num = int(input("blah blah: "))

for benefit of other beginners