fork download
  1. def czyPalindrom1(napis):
  2. return napis == napis[::-1]
  3.  
  4. def czyPalindrom2(napis):
  5. for i in range(len(napis)):
  6. if napis[i] != napis[-i-1]:
  7. return False
  8. return True
  9.  
  10.  
Success #stdin #stdout 0.1s 14120KB
stdin
Standard input is empty
stdout
Standard output is empty