Use "if not condition: continue" form inside for loop
This avoids having all the logic inside a big if block. The continue act as a precondition that needs to be fulfilled.
Showing
Please
register
or
sign in
to comment
This avoids having all the logic inside a big if block. The continue act as a precondition that needs to be fulfilled.