I want to create a function such that for numbers in the range (x,y)

I get the result, the square of x is x^2

the square of x^2 is x^2 and so on.

#### Put your values in x, y and try this - (give 4 spaces i.e. required indent before the print command)

x=5

y=10

for i in range(x,y):

print(‘square of x = {} is {}’.format(i,i**2))

Thank you. It worked.