Hi @tepw115 ,
Because the code that you posted is not formatted, it is difficult for other users to read and debug it. After code has been pasted into the editing window for posting, you can format it by selecting it, and then by clicking the </> button above the editing area. Alternatively, you can place three backquotes on the line before the code and three backquotes on the line after the code. This will enable us to see important details, such as the indentation and underscores. If you use the backquotes, your code will be color-coded, making it especially easy to read.
Make sure that the code you submitted is indented correctly. If you do not indent this line, you will have an infinite loop ...
num += 1
That is because without its being indented, the line is outside the loop, and
num will not get incremented.
For the loop to terminate properly, your code should look like this ...
num = 1
while num <= 10:
print num ** 2
num += 1