0
What's the error?
3 Réponses
0
If we first write a number A(say).then find the square of that number.then reverse the square. Then finding the square root of that number.and again reverse it..and at last if we got the sane nunber as A then it's PG number else not
0
the error should be the way you reverse your number.
to reverse sqr you might try:
rev = int(str(sqr)[::-1]))
also do the same thing for rev1