Odpowiedź:
def palindrom(s):
s = s.replace(" ", "")
return s == s[::-1]
zdanie = input("Napisz zdanie: ")
print(palindrom(zdanie) and "TRUE" or "FALSE")
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
def palindrom(s):
s = s.replace(" ", "")
return s == s[::-1]
zdanie = input("Napisz zdanie: ")
print(palindrom(zdanie) and "TRUE" or "FALSE")