-2
I have a list "list()" with N indexes. I would like to know how I use the content of the index and save it in a variable. For example:
In index [1] is the word "dog"
How do I save the content of the index within a variable?
var = cow
My idea is to make the variable "floating" so that I can make a "for" and add the index + 1 so that I can store several values in the variable while running the program.
Try sharing your code so other people understand better what your question is
– Breno Nahuz