0

I wrote this alternative to finding if a number was a perfect square or no how can I fix this:

n = input ('type n ')
message = ('false')
if n>0 and (math.sqrt(n)).is_integer(): message =  ('true') 
print (message)
MSeifert
  • 133,177
  • 32
  • 312
  • 322
Boch
  • 1

0 Answers0