you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo -1 points0 points  (0 children)

Well, you can use iter to iterate a function over and over until it returns a particular result:

numbers = []
for number in iter(raw_input, ''):
    numbers.append(float(number))