Oct-25-2020, 05:56 AM
Look at this image.
The only way you can get
Are if run code in IDLE Python shell
Correct code,always 4-space indentation in Python.
The only way you can get
unindent does not match any outer indentation level
with that code if fix last line.Are if run code in IDLE Python shell
>>>
,and not as New File
as image.Correct code,always 4-space indentation in Python.
for i in [12, 16, 17, 24, 29]: if i % 2 == 1: break print(i) print("done")
Output:17
done