python the hard way ex upto ex13

This commit is contained in:
samialazar 2020-05-19 16:28:33 +02:00
commit ed8222535a
7 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,13 @@
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"
))