I have the following code:
while True:
line = raw_input('Enter number:')
try:
if line == 'done':
break
if int(line) == ():
continue
except:
print 'invalid input'
print 'Done!'
print line
I would like to create a list of the numbers that are entered by the user. Can some help?