Facebook
From Chocolate Octupus, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 181
  1. #zadanie 5
  2. def palicheck(string):
  3.     if string == string[::-1]:
  4.         print("Słowo jest palindromem")
  5.         return True
  6.     else:
  7.         print("Słowo nie jest palindromem")
  8.         return False
  9.  
  10. palicheck('pinka')
  11. palicheck('kajak')