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
  • 145,886
  • 38
  • 333
  • 352
Boch
  • 1

0 Answers0