the conditions are: Repeatedly reads numbers until the user enters 'done'. Once 'done' is entered, break out of the loop. If the user enters anything but a number, capture the error using a try-except construct and display the message "Bad Data" Once 'done' is entered print out one of 2 messages: If the total is greater or equal to 200 then: "The total (the value in the total variable) for the numbers entered is Large" If the total is less than 200 then: "The total (the value in the total variable) for the numbers entered is Small"
count = 0
while count <= 200:
x = int(input('Please enter a number to add: '))
count = count + x
if x >= 200:
print('The total', count, 'for the number entered is Large')
break
elif x == 'done':
print ('The total',count,'for the number entered is Small')
break
elif x == ValueError:
print('Bad Data')
continue
Im a beginner so a little help would be cool.