0

why does it show a syntax error?

File "..\Playground\", line 17 elif ((l.index(l[x]))+I)>+26 : ^ SyntaxError: invalid syntax ,,,,,,,,,,,,, sry i made a mistake writing the error part of the code is : if l[x] in ast: n=k[I] if n==1 : if ((l.index(l[x]))+I)<26 : cp0.insert(ast.index(l[x]),l[x+I]) cp0.pop((ast.index(l[x])+1) elif ((l.index(l[x]))+I)>26 : cp0.insert(ast.index(l[x]),l[I+l.index(l[x])-26]) cp0.pop(ast.index(l[x])+1) else : None and it shows error : File "..\Playground\", line 17 elif ((l.index(l[x]))+I)>26 : ^ SyntaxError: invalid syntax

13th Nov 2018, 3:27 PM
giannis kalesis
giannis kalesis - avatar
3 Answers
+ 1
>+ is not right, use only one > or + to avoid invalid syntax.
13th Nov 2018, 4:04 PM
Maninder $ingh
Maninder $ingh - avatar
0
+26 Write 26
13th Nov 2018, 3:35 PM
Roneel
Roneel - avatar
0
>+?
13th Nov 2018, 3:36 PM
James
James - avatar