Friday, February 26, 2016

Slog Week 6

    After reading week, we start on a new topic called recursion. Basically, it is a way to simplify a problem with large extent , in which a function calls itself one or more times in its body. Also, recursion has something to do with nested lists. The function depth(obj) is exactly a way to sum the total possible nested lists in object.
   The lab this week was quite interesting. Some new methods like zip or tuple unpacking were introduced. However, we need to use our old method to rewrite the given body of new methods instead. I think the point of the lab is to reinforce our ability on for loop and while loop. Though the new approaches seem easier to solve a problem, we should not forget our basic methods.

No comments:

Post a Comment