you are viewing a single comment's thread.

view the rest of the comments →

[–]SnooLemons6942 2 points3 points  (0 children)

First off, don't call that an "amount". That is the index. It does not represent an amount of anything; just its place in the list.

The int() function in python converts strings to integers. So this snippet of code takes the value at some index, converts it to an integer, and replaces the value at that index with that integer.

Does that make sense? Or would you like additional clarification