-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scissors - Ivana #58
base: master
Are you sure you want to change the base?
Scissors - Ivana #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on your first Ada project! You've met the learning goals of working with loops, conditionals, and nested data structures. Your code is clear and concise, and makes good use of helper functions. I've made a couple suggestions that we can discuss in your 1:1 this week. Keep up the hard work!
GREEN
# test_wave_01 | ||
|
||
def create_movie(movie_title=str, genre=str, rating=float): | ||
"""Creates a ``new_movie`` that will be added to the user's list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of docstrings throughout
|
||
# NEW: Helper function: gets the movies all friends watched. | ||
|
||
def get_friends_movies(user_data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great use of a helper function to DRY up your code!
friends_movies = get_friends_movies(user_data) | ||
fav_genre = get_most_watched_genre(user_data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work using the previous functions as helper function to write clear, concise code
Return the default rating first to deal with the edge case first to improve efficiency Co-authored-by: Becca <[email protected]>
Change the assignment operator for better readability Co-authored-by: Becca <[email protected]>
No description provided.