[Python #2] create e9.py
This commit is contained in:
parent
6296a5b753
commit
4a11b01520
2 changed files with 16 additions and 0 deletions
14
kjg/python-the-hard-way/e9.py
Normal file
14
kjg/python-the-hard-way/e9.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Here's some new strange stuff, remember type it exactly
|
||||||
|
|
||||||
|
days = "Mon Tue Wed Thu Fri Sat Sun"
|
||||||
|
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
|
||||||
|
|
||||||
|
print("Here are the days: ", days)
|
||||||
|
print("Here are the months: ", months)
|
||||||
|
|
||||||
|
print("""
|
||||||
|
There's something going on here.
|
||||||
|
with the three double-quotes.
|
||||||
|
We'll be able to type as much as we like.
|
||||||
|
Even 4 lines if we want, or 5 or 6
|
||||||
|
""")
|
|
@ -69,3 +69,5 @@ Cheese Burger
|
||||||
*** Python #2:
|
*** Python #2:
|
||||||
**** ex8
|
**** ex8
|
||||||
learn about a more complicated formatting of a string. {}
|
learn about a more complicated formatting of a string. {}
|
||||||
|
**** ex9
|
||||||
|
how to print for multiline or nextline
|
||||||
|
|
Loading…
Reference in a new issue