Thursday, January 30, 2014

Raising and Catching Exceptions


         During the lab of this week, my partner and I both feel the difficulty of problems in the handout. Firstly, we are confused about the difference between attributes and method.  After the clarification of TA, we are eventually on the right track, but a little behind of other classmates.  At that time, I realized that I do not have a good way for studying CSC148. We have pre-videos in CSC108; thus, it is good for me to know what I will learn in the following week and the videos clearly show the main contents of the course. I never look at outside sources in the last semester. Nevertheless, I am pretty sure that I need to change my study way. Although the professor posts the related information, which is about the learning points we need to know, I still do not pay much attention on them. Now, I realize that I need to seriously read them.
         Before I take a look reading and review the python examples, I even do not understand the handout of exercise this week and do not know how to start the code. Moreover, I search everything confused in the handout such as exception class. Therefor, I read the reading according to Exceptions. I know what is exception and when it is happened. Even if the code has no syntax error, it may cause different types of error when an attempt is made for executing it. Furthermore, I learn how to catch exceptions by using try-except statement and raising our own exception. Actually, this part is not that such difficult. I finish the exercise in a few minutes and pass all the tests. Luckily, it seems that I find a suited way of learning for myself.

No comments:

Post a Comment