+ 1
Error in Python Program
I have written this piece of code and it is giving me. Syntax Error: 'break' outside the loop https://code.sololearn.com/cEsQIfbNQkY3/?ref=app https://code.sololearn.com/cEsQIfbNQkY3/?ref=app
2 Answers
+ 3
You can only use break and continue in loops.
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2281/
+ 2
Line 2:
rpass = 222853
== check equal or not
= assign value to variable
In this program, don't need break and continue.
Use break and continue only in loops.