Posts by Leo • 21 points
1 post
-
2
votes3
answers1265
viewsA: Ask for n python entries
In Python 3. I do not know if I understood the doubt. But the following works: z=0 x=[] while z != -1: z = int(input('Digite a idade: ')) if z != -1: x.append(z) if len(x) != 0: media =…