Created
February 2, 2020 08:56
-
-
Save santosadrian/23bd8e5b521ad4759566f60e6ba6e98c to your computer and use it in GitHub Desktop.
Example 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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