Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = 0
- def pali (x):
- if x == x[::-1]:
- s = 1
- else:
- s=0
- return s
- s += pali (x = input())
- s += pali (x = input())
- s += pali (x = input())
- if s >= 1:
- print ("Yes")
- else:
- print ("No")
Advertisement
Add Comment
Please, Sign In to add comment