[Python #2] create e9.py

This commit is contained in:
kjg 2020-05-20 21:31:00 +09:00
parent 6296a5b753
commit 4a11b01520
2 changed files with 16 additions and 0 deletions

View 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
""")

View File

@ -69,3 +69,5 @@ Cheese Burger
*** Python #2:
**** ex8
learn about a more complicated formatting of a string. {}
**** ex9
how to print for multiline or nextline