Python-ifed-challenge icon indicating copy to clipboard operation
Python-ifed-challenge copied to clipboard

Challenge 1 Step 6

Open Advaith3600 opened this issue 5 years ago • 1 comments

  1. Refactoring the "Cricket Match Analysis" with traditional for loop seemed boring, so I tried oneliners. Used mapping and lambda function to achieve it.
  2. "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.
  3. 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.
  4. 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.

Advaith3600 avatar Jan 09 '21 17:01 Advaith3600

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB