Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created December 15, 2021 19:00
Show Gist options
  • Save kumpera/fcd7027e5aa9dab81343e1267a3a8040 to your computer and use it in GitHub Desktop.
Save kumpera/fcd7027e5aa9dab81343e1267a3a8040 to your computer and use it in GitHub Desktop.
import sys
def my_print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False):
r = ""
for o in objects:
r = r + str(o) + str(sep)
r = r + end
file.write(r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment