APS106H1 Midterm: APS106S_2017_FUNDAMENTALSOFCOMPUTERPROGRAMMING_E

67 views18 pages

Document Summary

Instructors: c. beck, j. castrucci, s. colic, d. rosu. Marks will be awarded for correctness of your algorithm, python syntax, adherence to recommended python coding practice, comments, code efficiency, and the clarity of your program. Unless specified, you should import any standard modules that you need. If you run out of room answering a question, continue it on the last 3 pages, and indicate that you"ve done so, both where you started the question, and where you finished it. The mark assigned to each question is not necessarily an indication of difficulty. Enter your answer in the box. particles = ["neutron", "proton", "electron"] charges = ["0", Enter your answer in the box. final = " final *= 3 lyric = "we are\" chorus = "the engineers". upper() chorus. lower () for i in range(2): lyric += lyric print(lyric, chorus, sep = "\n", end = final) Given a csv file test. csv, with format ,,,, and content: