How to make right loping trough while in Python : I am trying to make looping . I want an output of number from 1-10 squared 

Here is my code. what is wrong ?

    for num in range(1, 10):
      print (num)
      while num < 10:
        num = num ** 2
      print(str(num))

