Skip to content

Conversation

@mell2022
Copy link

@mell2022 mell2022 commented Oct 6, 2022

No description provided.

mell2022 and others added 23 commits October 4, 2022 11:00
…ass, wave 5 all pass, add assert back to wave 1- all pass
…_item, implemented get_best_by_category, no tests passing
Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nicely done Melly & QP,

Very clean code and it all seems to work. Well done.

if not list_of_items:
return None
else:
best_item = max(list_of_items, key = lambda item: item.condition)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of the lambda here!

@mell2022
Copy link
Author

mell2022 commented Nov 21, 2022 via email

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