python the hard way ex upto ex13
This commit is contained in:
parent
dab9fe5912
commit
ed8222535a
7 changed files with 68 additions and 0 deletions
13
sami/learn-python-the-hard-way/ex8.py
Normal file
13
sami/learn-python-the-hard-way/ex8.py
Normal 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"
|
||||
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue