Some code I wrote with my recursion code that I wrote in Python