Advertisement
Andres_v

Untitled

Mar 3rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. how_many = int(input("how many numbers are you add? "))
  2. l=[]
  3. count = 0
  4. for number in range(how_many):
  5. item=int(input("what is the number " + str(number) + "?"))
  6. l.append(item)
  7. count = count+1
  8. total=sum(l)
  9. print(str("El promedio de los números ") + str(l) + " es " + str(sum(l)/count))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement