-
Notifications
You must be signed in to change notification settings - Fork 0
/
wishlist.py
28 lines (23 loc) · 870 Bytes
/
wishlist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
books = [
"Automate the Boring Stuff with Python: Practical Programming for Total Beginners - Al Sweigart",
"Python for Data Analysis - Wes McKinney",
"Fluent Python: Clear, Concise, and Effective Programming - Luciano Ramalho",
"Python for Kids: A Playful Introduction To Programming - Jason R. Briggs",
"Hello Web App: Learn How to Build a Web App - Tracy Osborn",
]
video_games = [
"The Legend of Zelda: Breath of the Wild",
"Splatoon 2",
"Super Mario Odyssey",
]
def display_wishlist(display_name, wishes):
items = wishes.copy()
print(display_name + ":")
suggested_gift = items.pop(0)
print("======>", suggested_gift, "<======")
for item in items:
print("*" + item)
print()
display_wishlist("Books", books)
display_wishlist("Video Games", video_games)
display_wishlist("Video Games", video_games)