TheDigitalCatOnline / blog_source

Source code of the blog
16 stars 6 forks source link

Purely a suggestion for TDD in Python with pytest - Part 1 #19

Open 4myhw opened 3 years ago

4myhw commented 3 years ago

I am still learning Python and Git and I hope it is appropriate to add subjective suggestions.

In "TDD in Python with pytest - Part 1" as I said I am new to python and found going into how reduce works interesting but perhaps distracting. I searched the net for python multiplying a list and found https://www.geeksforgeeks.org/python-multiply-numbers-list-3-different-ways/ I thought 1 the for loop would have been simpler and then either 2(numby.prod), 3(reduce) or 4(math.prod) could have waited for refactoring.

Thanks, again for the tutorials. I may try your OOP next.