A small demonstration of the completed code that simulates an epidemic:
Also the exercise on recursion we did in lecture today was super helpful. It seems that the best way to predict the result of a recursive function is to work out the smallest unit of output possible, then work your way up through increasingly larger inputs, using what you already know about the output of the previous input, and eventually arriving at the output for your desired input. The previously elusive structures of recursive functions now finally make sense! I think this really shows how tracing codes is instrumental in the understanding of a particular programming language.


