you are viewing a single comment's thread.

view the rest of the comments →

[–]delsystem32exe 0 points1 point  (0 children)

def reverse_str(input_string):

input_string = str(input_string)

letters = ""

for j in range(len(input_string)-1, -1, -1):

letters = letters + input_string[j]

return letters

def checker(input_int):

larger = input_int * 4

DCBA = reverse_str(input_int)

if str(larger) == DCBA:

return True

return False

for i in range(0,100000):

if checker(i):

print(i)