+ 1
Does anyone know why I’m getting a “‘break’ outside the loop” error in this?
3 Respostas
+ 3
You cannot use break statement in if else as they are conditions and not loops.
break can only be used in loops , like while, for , do while etc
+ 3
You should put all your if and elif's in your while loop. And user input too.
+ 1
you if and while are seperated, because their indent are same
remember indentation are important in python