-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex9.py
More file actions
24 lines (21 loc) · 919 Bytes
/
ex9.py
File metadata and controls
24 lines (21 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Here's some new strange stuff, remember type it exactly.
# Assigning the days of the week to the variable "days".
days = "Mon Tue Wed Thu Fri Sat Sun"
# Assigning eight months to the variable "days". The \n puts them
# on a new line.
months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
# Print the string: "Here are the days:" and then call the variable "days"
# and print out the days (an array?)"
print("Here are the days: ", days)
# Print the string: "Here are the months:" and then call the variable "months"
# and print out the months (an array?)"
print("Here are the months: ", months)
# Print the paragraph. With three quotes, you can type as much as you like.
# The string goes across multiple lines.
# Be sure to remember "print" and the parentheses.
print("""
There's something going on here.
With three double quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
""")