Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b = "noda"
- c = "nutta"
- x = 1
- palindrome = []
- equation = []
- while x < 999:
- x += 1
- for i in range(900, 1000):
- a = i * x
- b = str(a)
- c = b[::-1]
- if b == c:
- palindrome.append(b)
- equation.append(i)
- equation.append(x)
- print palindrome[-1]
- print equation[-2:]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement