Here is the code:-
#method1
str=input("Enter the string: ")
if str[::]==str[::-1]:
print("The string is a palindrome.")
else:
print("String is not a palindrome.")
#method2
str=input("Enter the string: ").lower()
l=len(str)
x=[]
n=list(str)
for i in range(l-1,-1,-1):
g=str[i]
x.append(g)
if x==n:
print("string is a palindrome.")
else:
print("string is not a palindrome.")
En esta página del sitio puede ver el video en línea Python program for checking palindrome without reverse function. de Duración hora minuto segunda en buena calidad , que subió el usuario Ritik Kumar 25 marzo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 646 veces y le gustó 22 a los espectadores. Disfruta viendo!