-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
  • 20,142
  • 17
  • 60
  • 81
Ghost
  • 7
  • 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
  • 41,233
  • 10
  • 61
  • 89