Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Scissors - Ivana #58

wants to merge 4 commits into from

Conversation

i-vs
Copy link

@i-vs i-vs commented Mar 29, 2021

No description provided.

Copy link

@beccaelenzil beccaelenzil left a 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.

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

viewing_party/main.py Outdated Show resolved Hide resolved
viewing_party/main.py Outdated Show resolved Hide resolved

# NEW: Helper function: gets the movies all friends watched.

def get_friends_movies(user_data):

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!

Comment on lines +239 to +240
friends_movies = get_friends_movies(user_data)
fav_genre = get_most_watched_genre(user_data)

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

i-vs and others added 2 commits March 31, 2021 10:50
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants