Time

Read about how to use the time module in www.realpython.com. You can use time in a decorator or create a Time class to instantiate a start of a timer and an end of a timer. Decorators are quite onerous but useful. I wonder if there could be a use for a decorator in recursion? Recursion still boggles my mind if you don't take in consideration of the unwrapping from the stack of the function leading to a base case. Also I never realized that data structures could be recursive like lists and dictionaries. That you can apply recursion with python lists is really fascinating. I am at a loss of a direct use case just the same with coroutines but nevertheless interesting.

Comments

Popular posts from this blog