Have a problem with only this IDE.
thongth (0)

This program works very well on another site but it keep failing when I tried to run it on this site. (it doesn't print out the result in line 2 in the given picture) Is there any reasons to this?
You can try it yourself if you want to.
Ps. The picture shows how I want the program to be. (And it was on another site)

You are viewing a single comment. View All
Answered by JoshDaBosh (77) [earned 5 cycles]
View Answer
OwenBradstreet (87)

@pyelias You can also set the flush argument to true flush=True inside the print, which forces the terminal to buffer after each one :)