Code looks fun. I am sure you have come across the concept of functions, modules and how to use return. Try using functions and add a unit test for the function. You can have a separate file for testing or keep the code (function) in the same file as the test.
Code looks fun. I am sure you have come across the concept of functions, modules and how to use
return
. Try using functions and add a unit test for the function. You can have a separate file for testing or keep the code (function) in the same file as the test.This is great idea. Will try it. Thanks