Skip to content

Commit bc62880

Browse files
committed
Added tuples.py
1 parent c5f7383 commit bc62880

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Created by: Brian Shortiss
2+
# Created on: 16 February 2020
3+
#
4+
# Create a tuple that stores the months of the year, from that
5+
# tuple create another tuple with just the summer months
6+
# (May, June, July), print out the summer months one at a time.
7+
8+
months = ("January", "February", "March", "April", "May", "June",
9+
"July", "August", "September", "October", "November", "December")
10+
11+
summer = months[4:7]
12+
for month in summer:
13+
print(month)

0 commit comments

Comments
 (0)