10000 Add incomplete app file for students wanting to try this out after wa… · coding794/complete-python-course@df2911a · GitHub
[go: up one dir, main page]

Skip to content

Commit df2911a

Browse files
committed
Add incomplete app file for students wanting to try this out after watching the intro presentation brief.
1 parent ca3ccb4 commit df2911a

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

course_contents/3_first_milestone_project/milestone_1/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def menu():
4747
selected_function = user_options[selection]
4848
selected_function()
4949
else:
50-
print('Unknown command-please try again.')
50+
print('Unknown command. Please try again.')
5151

5252
selection = input(MENU_PROMPT)
5353

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Incomplete app!
2+
3+
MENU_PROMPT = "\nEnter 'a' to add a movie, 'l' to see your movies, 'f' to find a movie by title, or 'q' to quit: "
4+
movies = []
5+
6+
7+
# You may want to create a function for this code
8+
title = input("Enter the movie title: ")
9+
director = input("Enter the movie director: ")
10+
year = input("Enter the movie release year: ")
11+
12+
movies.append({
13+
'title': title,
14+
'director': director,
15+
'year': year
16+
})
17+
18+
19+
# Create other functions for:
20+
# - listing movies
21+
# - finding movies
22+
23+
24+
# And another function here for the user menu
25+
selection = input(MENU_PROMPT)
26+
while selection != 'q':
27+
if selection == "a":
28+
pass
29+
elif selection == "l":
30+
pass
31+
elif selection == "f":
32+
pass
33+
else:
34+
print('Unknown command. Please try again.')
35+
36+
selection = input(MENU_PROMPT)
37+
38+
39+
# Remember to run the user menu function at the end!

0 commit comments

Comments
 (0)
0