Kontrola palindromu za pomocą pętli w Pythonie
p = list(input())
for i in range(len(p)):
if p[i] == p[len(p)-1-i]:
continue
else:
print("NOT PALINDROME")
break
else:
print("PALINDROME")
Curious Crane