Last answered:

05 Jul 2023

Posted on:

03 Jul 2023

0

Why is mine not runing

user_input = int(input("Enter a series of numbers and type exit to stop:>"))
numbers =[]
while user_input.lower()!= 'exit':
    while not user_input.isdigit():
        print('That is not number! Enter only numbers please:>')
        user_input = input('Try again please:>')
    numbers.append(int(user_input))
    user_input = input('Please enter next number:>')
total = 0
for number in numbers:
    total += number
print(f'Mean is {total/len(numbers)}')
print('sun(numbers)/len(numbers)')

2 answers ( 0 marked as helpful)
Posted on:

03 Jul 2023

0

I wish i could delete that, I know why it was not running already. 

Instructor
Posted on:

05 Jul 2023

0

Hi Ferdinand!

Glad to hear you solved the problem on your own.

Good luck and please feel free to post another question should you encounter other difficulties. Thank you.
Best,
Ivan

Submit an answer