I'm using lists to do a program. Initially I wanted to make a program that would create as many variables as one wanted, but I ended up finding an easier way. I thought about creating a list and adding 10 elements to it. After that the program would have to read element by element to execute the next step of the program (I can not reveal the next step), but I came across a problem, how to make the program read the separate lines of a list? For example:
Lista = [1, 2, 3, 4, 5]
My program would pick up item by item, in case it would get the item from list L, 1, and execute the rest of the program, later it would take item 2 and execute, continuing until it reaches number 5. There is any command that allows me to grab the item from the list in the position I want and display it on the screen? Or allow you to read line by line from the list? How to solve my problem? I've tried everything!