-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex9.py
More file actions
23 lines (19 loc) · 703 Bytes
/
ex9.py
File metadata and controls
23 lines (19 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Assigns text to the variable days
days = "Mon Tue Wed Thu Fri Sat Sun"
# Assigns text to a variable months
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
# Prints text specified in quotes
# and text, specified in variable days, in 1 line
print "Here are the days: ", days
# Prints text, specified in quotes,
# and text specified in the variable months
# Prints each month from a new line because of \n
print "Here are the months: ", months
# Prints text specified in quotes exactly as we wrote it,
# i.e. prints every line as a new line
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.
"""