SHARE
TWEET

Untitled

a guest Jul 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def palindrom():
  2.     y = 0
  3.     f = input()
  4.     if f == f[::-1]:
  5.         y += 1
  6.     return y
  7.  
  8. d = 0
  9. for i in range(3):
  10.     if palindrom() == 1:
  11.         print('Палиндром')
  12.         d = 1
  13.     else:
  14.         print('Не палиндром')
  15. if d == 1:
  16.     print('В трёх словах есть хотябы 1 палиндром')
  17. else:
  18.     print('В трёх словах ни одного палиндрома')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top