0

how to use increment and decrements operators ?

while counter<=index: y=x[counter] print(y+'!') counter++ SyntaxError: invalid syntax

23rd Feb 2019, 10:35 AM
Dee Pan Kar
Dee Pan Kar - avatar
2 Respostas
+ 2
Is this Python? Python does not support prefix/postfix increment/decrement operators. Do counter+=1 instead.
23rd Feb 2019, 11:23 AM
Hatsy Rei
Hatsy Rei - avatar
0
thnks
23rd Feb 2019, 12:15 PM
Dee Pan Kar
Dee Pan Kar - avatar