Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created May 7, 2023 09:39
Show Gist options
  • Save stephengruppetta/f27e5c4be8452a81d951d057e0e9898f to your computer and use it in GitHub Desktop.
Save stephengruppetta/f27e5c4be8452a81d951d057e0e9898f to your computer and use it in GitHub Desktop.
import functools
import random
bizarre_print = functools.partial(
print,
"Here is a random number",
random.randint(0, 100),
sep=" • | • ",
end=" <THE END>\n",
)
bizarre_print("Hello", "Let's try this out")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment