How can I jump to the next value (not the next val) when the condition is satisfied?
Example:
lines = iter(open('something.txt', 'r')) for value in lines: for val in value: if val == "!": #execute code #jump to next value
Aucun commentaire:
Enregistrer un commentaire