Skip to content

Instantly share code, notes, and snippets.

@elPytel
Created November 12, 2022 13:49
Show Gist options
  • Save elPytel/57042807108312ce4c3063b84cc0a1bc to your computer and use it in GitHub Desktop.
Save elPytel/57042807108312ce4c3063b84cc0a1bc to your computer and use it in GitHub Desktop.
C like printf in Python
#!/usr/bin/python3
import sys
def printf(format, *args):
sys.stdout.write(format % args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment