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