I am trying to ask for user input once, but every time I run the code it asks you to enter a number twice in a row and only prints the sum of one of the first number you enter. Any solutions so I can get it to only ask once?
thesum=0.0
count=0
print('Welcome to Sum and Average Finder')
userinput=(float(input('Enter a Number or Hit Enter to Quit: ')))
while userinput !='':
number=float(userinput)
thesum+=number
count+=1
userinput=input('Enter a Number or Hit Enter to Quit: ')
print('The Sum is',thesum)
print('Avergae is',thesum/count)