Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line = "Я - арка края"
- line = line.lower()
- line = line.replace('-', '')
- line = line.replace(' ', '')
- line1 = line[:: -1]
- if line == line1:
- print("Это палиндром")
- else:
- print("Это не палиндром")
- print(line1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement