create a while loop that prints out all the number from 1 to 10 squared(1,4,9,…,100),each on their own line.
num = 1
while num <= 10:
print num ** 2
num += 1
在第一节,说不要弄丢 或者 移动 count += 1 ,否则这个loop会是无限循环,使你的电脑或者流览器计算崩溃。
看到了不算,要实践一下才算。这是第三节,立即开始打脸,第一次写把最后一行丢掉了。