fork download
  1. def isSqr(x):
  2. return (sqrt(x) == int(sqrt(x)))
  3.  
  4. def sqrt(x):
  5. return (x ** 0.5)
  6.  
  7. n = 100000000000000000000
  8. m = 100000000000000000001
  9.  
  10. print(isSqr(n))
  11. print(isSqr(m))
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
True
True