Square up

Report a typo

The program below is supposed to print the squares of all numbers from 1 to 20 (inclusive), but there are some mistakes. Find and fix them.

Write a program in Python 3
i = 1
num = 20
while i > num:
print(i)
___

Create a free account to access the full topic