Odpowiedź:
str = input("podaj slowo: ")
l = len(str)
p = l-1
index = 0
while index < p:
if str[index] == str[p]:
index = index + 1
p = p-1
print("slowo jest palindromem")
break
else:
print("slowo nie jest palindromem")
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
Odpowiedź:
str = input("podaj slowo: ")
l = len(str)
p = l-1
index = 0
while index < p:
if str[index] == str[p]:
index = index + 1
p = p-1
print("slowo jest palindromem")
break
else:
print("slowo nie jest palindromem")
break