Sep-28-2017, 04:54 PM
please give a runnabl sample of your code with the full error text or a clear description of the problem
I know, i was asking some basic question...but i am new to python launguage and not able to crack this basic code..please help me.thanq
I know, i was asking some basic question...but i am new to python launguage and not able to crack this basic code..please help me.thanq
str="titit" a=len(str) for l in str[:a/2] for m in str[a,-1]: if l==m: if l!=len(str)/2: break else: else: print("not a palindrome")
Error:File "<ipython-input-120-c3db7da8370e>", line 3
for l in str[:a/2]
^
SyntaxError: invalid syntax