CSC108H1 Midterm: UTSG CSC 108 2009_winter

16 views21 pages
7 Mar 2019
School
Course
Professor
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
21
CSC108H1 Full Course Notes
Verified Note
21 documents

Document Summary

Do not turn this page until you have received the signal to start. (in the meantime, please ll out the identi cation section above, and read the instructions below carefully. ) This nal examination consists of 10 questions on 21 pages (includ- ing this one). When you receive the signal to start, please make sure that your copy of the examination is complete. Comments and docstrings are not required except where indicated, although they may help us mark your answers. They may also get you part marks if you can"t gure out how to write the code. You do not need to put import statements in your answers. You may not use break or continue on this exam. If you use any space for rough work, indicate clearly what you want marked. Assume all input is valid unless otherwise indicated; there is no need to error-check. Complete the following function according to its docstring description. def clump(l, k):