Advertisement
Gowwa

Untitled

Jul 16th, 2019
1,124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def palindrom():
  2.     y = 0
  3.     for i in range(3):
  4.         f = input()
  5.         if f == f[::-1]:
  6.             y += 1
  7.         else:
  8.             print("Простое слово " + f)
  9.     if y > 0:
  10.         print('Палиндром')
  11. palindrom()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement