I'm experiencing a problem with input(). I've a program like:
while condition:
do_stuff()
value = input("Insert data >> ")
If I write something
while the loop is executing, when condition
becomes False and input() is executed, Insert data >> something
is printed on the CLI.
How can I prevent something
from being printed? Is there a method to flush the input stream before calling input()?