+ 1
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")
4 odpowiedzi
0
It needs to be in Python
0
0
Btw, can you post your code here? I want to try your code but I cannot copy it.