Support Forums

Full Version: How can I make a loop that changes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I make something like

Code:
x = 5
while 0 < x
    b  = raw_input("something: ")

However each time it loops, I want it to change, like:
first loop - b = raw_input("something: ")
second loops - c = raw_input("something: ")
third loop - d = raw_input("something: ")
and so on.
Code:
List = []
for x in xrange(5): List.append(raw_input(""))