2015年2月8日星期日

About week 5

Trace Recursion, write recursion.

The term test 1 has ended. Some potential problems that I have not paid enough attention is showed in the test.

Firstly, although I know what does exception means and how to use it, I do not realize when using it appropriately. I still let my intuition goes like

print('This does not work')
rather than
raise Exception('This does not work')

Also, I sometimes forget to write code “raise” before Exception or NotImplementError .


I have somehow be more familiar with the idea of recursion, specifically where to  put the function in the code. So far I managed to do all the assignments and labs relate to recursion, and I want more questions for exercise.

没有评论:

发表评论