2
I’m using lists to do a little programming. Initially I wanted to make a program that created as many variables as the person wanted, but I found an easier way. I thought I’d create a list and add 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’t reveal the next step), but I faced 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 which case it would take the L-list item, the 1-item, and run the rest of the program, further forward it would take item 2 and run, continue until I reach 5. Is there a command that allows me to pick up the list item at the position I want and display it on the screen? Or that allows you to read line by line from the list? How to solve my problem? I’ve tried everything else!