Goto statement in python - what other way is there? -
my program has following scturcutre
- program takes screenshot 2, program looks condition a. if condition not met, need go point 1
- program looks condition b. if condition b not met, need go point 1
- program looks condition c. if condition c not met, need go point 1 ... etc
there around 20 additional conditions , whenever 1 of them not met, program should return starting point. goto statement solved. however, in python not option. suggestions appreciated how can implemented elegantly.
you should give code, or @ least example showing structure is.
maybe so:
take screenshot condition = (condition a) , (condition b) , ... , (condition z) while (not condition): take screenshot condition = (condition a) , (condition b) , ... , (condition z)
Comments
Post a Comment