SHARE
TWEET

Untitled

a guest Jun 12th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. series=list()
  2. total=0
  3. while True:
  4.     numbers = input('Enter the numbers for the series:')
  5.     if numbers=="done":
  6.         print(series)
  7.         print("The average of the list is",total/len(series))
  8.         break
  9.     else:
  10.         series.append(numbers)
  11.  
  12.         total=float(numbers)+total
  13. print ('ALL DONE')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top