continue - Alternative to Goto keyword in python -
this question has answer here:
- `goto` in python 6 answers
def fun_name(): condition: condition: if condition: #continue else: pass
how jump outer loop there no goto or label keyword in python ? continue return me inner loop. there way achieve ?
use 'break' keyword break out of inner loop.
Comments
Post a Comment