Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how_many = int(input("how many numbers are you add? "))
- l=[]
- count = 0
- for number in range(how_many):
- item=int(input("what is the number " + str(number) + "?"))
- l.append(item)
- count = count+1
- total=sum(l)
- 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