8 ms·
what was wrong with this code? I don't deal with exceptions a lot so not familiar with the idioms here. Is it because the catch is not doing anything at i<3? An
by dbancajas 7y ago
what was wrong with this code? I don't deal with exceptions a lot so not familiar with the idioms here. Is it because the catch is not doing anything at i<3? And then at i==3 it just breaks from the for? So rendering the whole thing useless ?
- pault 7y ago`if i<3: continue; if i==3: break;` is what a for loop does. You don't have to manually control it.