-9

Letss say the user wants to input 100 things; but I don't want to make my script have 100, x = raw_input(''), is there away to do this?

Remi Guan
  • 21,506
  • 17
  • 64
  • 87
Ghost
  • 17
  • 5

1 Answers1

0

Use a list and a while loop.

data=[]

for x in xrange(100):
    data.append(raw_input("Your data: "))

If you don't need to store the data that was entered, get rid of the list and process this data right in the loop.

ForceBru
  • 43,482
  • 10
  • 63
  • 98