0

Solution for Python while else for problem?

Python Course

26th Nov 2020, 11:15 PM
Alex[]
Alex[] - avatar
2 odpowiedzi
0
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
26th Nov 2020, 11:22 PM
Alex[]
Alex[] - avatar