0
Spam Eggs?
Hello! Why string if end == 'N' or end == 'n': break causes an error 'break outside the loop'?? In other my programs of similar error with this syntax like as well as not :/
5 ответов
+ 1
maybe because:
1) it is used inside a loop
or
2) there has not been a 404 input yet.
As Python is a dynamic language, all code is analysed at RUNTIME. There is no compile time
+ 1
welcome
0
The break keyword has to be used inside a loop construct, either for or while
0
But why string
x = input("\n... : ")
if x == "404":
break
Does not cause an error "break outside loop" ?
0
Thx!