Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Function print output

Woloszin
Woloszin

Hi Guys. I'm with a problem that doesn't happened before.
When a try to print from a def, the console just show after def solve the problem. Before, a def function worked well. does anyone knows what happened?

Ex: https://repl.it/@Woloszin/printOutTest
tf

4 years ago
You are viewing a single comment. View All
2
OmniShift
OmniShift

Change print(i, end="") to print(i, end="", flush=True) to prevent python from buffering each letter.

4 years ago
1
Woloszin
Woloszin

@OmniShift
u got it! tks so much, OmniShift!

4 years ago