SyntaxFix
Write A Post
Hire A Developer
Questions
With Python 3.x the print() function has been extended:
print()
print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
So, you can just do:
print("Visiting toilet", flush=True)
Python Docs Entry