def num(x):
x = str(x)
xs = ''.join(reversed(x))
x = int(xs)
return x
for i in range(100000):
d = num(i)
if i * 1.2 == d:
print(i)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def num(x):
x = str(x)
xs = ''.join(reversed(x))
x = int(xs)
return x
for i in range(100000):
d = num(i)
if i * 1.2 == d:
print(i)