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.
Friday, February 26, 2016
Monday, February 15, 2016
Slog Week 5
The most important thing in this week is the term test written on Wed, I don't feel well about this test since I couldn't complete the test in a given time. I spent much time reading the questions and planning what I was supposed to write. The term test is a warning that the lack of comprehension is the main reason of writing speed. Therefore, I need to do more practices about writing codes. Also, We have an assignment which is due right after the reading week. The assignment is quite interesting and it's related to our real life. I decide to work alone on this assignment because it provides a great opportunity on practice writing codes instead of doing assigned works by working with groups. Furthermore, the Q&A posted on piazza would be helpful when I write the assignment and hopefully I will get all this done by the end of the reading week.
Friday, February 5, 2016
Slog week4
This week, we continued studying on the topic of class. I learned the difference between "Stack" and "Sack". Basically, Stack is to append something into a list and remove the last item out. In contrast, Sack is to insert or remove an item randomly from a list. When implementing class Sack, the professor introduced us a new method called random module in which we can pick and return a random item from a list by using randint function.
I found a difficulty when I was doing Lab 3 this week. Some contents are from CSC108 that I can't quite remember. Therefore, I need to pick a time to review all the stuff I left out from last semester. By the way, the first exam is coming up. I feel less confident about this exam. Unlike CSC108, CSC148 does not provide tutorial videos which is an useful way to review. Also, the exams from previous year have not posted yet that I can't work on those materials earlier. Anyway, I will work hard during the weekend to get fully prepared for the test next week.
I found a difficulty when I was doing Lab 3 this week. Some contents are from CSC108 that I can't quite remember. Therefore, I need to pick a time to review all the stuff I left out from last semester. By the way, the first exam is coming up. I feel less confident about this exam. Unlike CSC108, CSC148 does not provide tutorial videos which is an useful way to review. Also, the exams from previous year have not posted yet that I can't work on those materials earlier. Anyway, I will work hard during the weekend to get fully prepared for the test next week.
Subscribe to:
Comments (Atom)