What is the problem?
If you see no output, then simply add print(ages) below the loop block. Don't forget to indent correctly.
Please tag 'Python while-loop' â
27th Nov 2020, 3:12 AM
Ipang
- 1
ages = []
i = 0
while i<3:
age = int(input())
ages.append(age)
i+=1