while (bulbsacar [0]> gt;) or (magician [0]> 0): # I get an EOF error here (bulbsure [0]> 0) or (magician [0]> 0) # and here is a syntax error Does anyone know that work How to do it while doing or with
In the first example, . If you need an empty loop, then there can be anything, when you can use pass : (Bulbsure [0]> ; 0) or (Magician [0]> 0): Pass In the second example, you are missing : to start a new block . For reference:
) Or (x == 'b'):
While running it in Python 2.7, I get an "estimate of an indent block".
No comments:
Post a Comment