+ 3
Issues writing a program to detect whether a string is a palindrome or not
I have this code, but for some reason it keeps coming up as an error: string=input("Enter string:") if(string==string[::-1]): print("The string is a palindrome") else: print("The string isn't a palindrome")
7 Respostas
+ 1
syntax error. The code doesn't run
0
it works fine though
0
the code works fine