Skip to content

[book-store] Simplify example.py#2175

Merged
yawpitch merged 2 commits intoexercism:masterfrom
yawpitch:simplify-book-store-example
Feb 20, 2020
Merged

[book-store] Simplify example.py#2175
yawpitch merged 2 commits intoexercism:masterfrom
yawpitch:simplify-book-store-example

Conversation

@yawpitch
Copy link
Copy Markdown
Contributor

The existing example.py is quite complex and not particulary efficient,
even for quite small lists of books. This example.py is much simpler,
but could be made considerably more efficient through a bit of a caching
and some sensible short-circuit returns. These are left to the student
to figure out, however.

This one will also pass the new tests in #2174.

Loading
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