inomen87 / GrgOrbit

GNU General Public License v3.0
0 stars 0 forks source link

Factorial Madness #5

Open rollinger opened 1 year ago

rollinger commented 1 year ago

Great work with the factorials.py.

Now here we have the opportunity to learn about Variables & Scope as well as Recursion.

In commit https://github.com/inomen87/GrZip/commit/35d90769fecbc4377647811f6279a077deeb1e8b I added some TODOs to refactor your great work. Read the sections I point out to you and try to rework the code as I indicated.

CU

rollinger commented 1 year ago

I have added a test case for factorial.py

TDD = Test Driven Development means that your work has to pass the test for quality assurance of your work. This is standard practice, so we use it too.

You can check anytime if your code is doing what it supposed to do by running pytest tests/test_factorial.py

You will get errors, don't get frustrated - we tackle em all together! Just try your best.