def sqrt():
x = input('enter a number:' )
x= int()
if x == int:
a = x*x
print (a)
else:
print ('this is not a number')
this is my code, i wanted to input a number and multiply it by itself, but it didn't work out. when i run my program as;
sqrt()
enter a number:10 this is not a number
but the code that i have written should give 'True' to the 'if' statement. any helps?