12 lines
347 B
Python
12 lines
347 B
Python
|
|
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(
|
||
|
|
"MultiLine input",
|
||
|
|
"Is Horrendously Ugly",
|
||
|
|
"To code",
|
||
|
|
"And to read!"
|
||
|
|
))
|