Artem Tepanov <[email protected]> added the comment:
Using cmd:
C:\Users\ATepanov>python -V
Python 3.8.0
C:\Users\ATepanov>python C:\Users\ATepanov\Desktop\Outside_The_Loop.py
File "C:\Users\ATepanov\Desktop\Outside_The_Loop.py", line 3
break
^
SyntaxError: 'break' outside loop
In Interactive:
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> while False:
... break
...
File "<stdin>", line 2
SyntaxError: 'break' outside loop
>>>
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com