prompt-toolkit / ptpython

A better Python REPL
BSD 3-Clause "New" or "Revised" License
5.23k stars 281 forks source link

Error not erroneous... ;-) #588

Open AnonymouZEE opened 4 months ago

AnonymouZEE commented 4 months ago

for a in [1,2,3] : if a % 2 : print( f"{a}" );

invalid syntax (, line 1)

for a in [1,2,3] : if a % 2 : print( f"{a}" ) else: pass;

invalid syntax (, line 1)

for a in [1,2,3] : \ ... if a % 2 : \ ... print( f"{a}" );

invalid syntax (, line 2)

;-)