3. while you're at it. How to i fix this?


#1

Hello, I have encountered a problem with this exercise. I've passed it but don't understand how to make it do what it needs to.
here is the link to the exercise.

here is the code i used:

num = 1

while num < 199:  # Fill in the condition
    print num ** 2# Print num squared
    num += 1# Increment num (make sure to do this!)`

and it returns in the console squares from 1 - 39,204


#2

from the instructions:

Create a while loop that prints out all the numbers from 1 to 10 squared

you print out all numbers from 1 to 198 squared, quit a difference


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.