Friday, April 8, 2016

Week 12 Entry

This week is the last week for CSC148 and we basically just review some materials that we've learned in the past. The professor also mention some interesting mechanic in Python: for example, when we try to create a nested list using the code "[[]] * 6", the created list will not behave what we wanted it to be; instead, all the empty list in the master list will be the same object and thus any attempt to populate the list will result some unexpected result. I also discovered this another time while I was doing assignment 2 because the usual method for copying a list (i.e. list.copy()) does not really work with a nested list, so an alternate method must be use.

Overall, this semester with CSC148 has been really rewarding and I am ready for more CSC courses in the following year.