Python-ifed-challenge
Python-ifed-challenge copied to clipboard
Challenge 1 Step 6
- Refactoring the "Cricket Match Analysis" with traditional for loop seemed boring, so I tried oneliners. Used mapping and lambda function to achieve it.
- "Optimizing Code" blew my mind, how much time we can save just from opting for a better approach. In my case, I saved 13s or more from it.
- I am happy to read more about documenting code. Documentation of the code was always a weak point in me. I defined three functions with different approaches to solving the same problem with documentation saying what does what along with information about its parameters and return.
- Always been a big fan of writing tests because it gives us an idea about what we did wrong. Pytest helped to clear out all the corner cases.
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB