ungleich-learning-circle/sami/learn-python-the-hard-way/ex8.py

14 lines
332 B
Python
Raw Normal View History

2020-05-19 14:28:33 +00:00
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"
))