Skip to content

Instantly share code, notes, and snippets.

@santosadrian
Created February 2, 2020 08:56
Show Gist options
  • Save santosadrian/23bd8e5b521ad4759566f60e6ba6e98c to your computer and use it in GitHub Desktop.
Save santosadrian/23bd8e5b521ad4759566f60e6ba6e98c to your computer and use it in GitHub Desktop.
Example 8
formatter = "{} {} {} {}"
print(formatter.format(1, 2, 3, 4))
print(formatter.format("one", "two", "three", "four"))
print(formatter.format(True, False, False, True))
print(formatter.format(formatter, formatter, formatter, formatter))
print(formatter.format(
"Try your",
"Own text here",
"Maybe a poem",
"Or a song about fear"
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment