What's the error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
28th Mar 2020, 5:09 AM
PRADEEP KUMAR JAISWAL
2 Answers
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
28th Mar 2020, 7:05 AM
PRADEEP KUMAR JAISWAL
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
28th Mar 2020, 7:54 AM
John Robotane
John Robotane - avatar