x=[]
while True:
try:
x.append(float(input('what are your numbers?\n')))
if x.append('done'):
break
except:
print('bad data')
continue
print(len(x), sum(x), min(x), max(x))
In this code I want the user to provide numbers, skip strings and finally I want the loop when the user types in 'done' but it does not work, what am I doing wrong here?