Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = 100
- while num > 0:
- if int(num % 10 == 0):
- tempNum = num % 10
- num = int(num / 10)
- if num % 10 == tempNum % 10:
- print(True)
- else:
- print(False)
- else:
- print(False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement