0
Why isn' t this program in python functioning properly for a palandrom Sting detection , please help
e = " " a = input(" Enter a string : ") for i in a : e = i + e if a ==e : print ("palandrom string") elif a!= e : print ("Not a palandrom")
4 Answers
+ 3
@AllWorld,
You've done good. Just declare e = "" in the first line. As a single space (" ") also counts.
Edit: It works for me https://code.sololearn.com/ch8XWmWmn7hu/#py
+ 1
oh now I got it thanks
0
Rahul bro I appreciate your support but it's already there and still not working