COMPSCI 61A Study Guide - Midterm Guide: Iter, List Of The Incredibles Characters, Init
![COMPSCI 61A Full Course Notes](https://new-docs-thumbs.oneclass.com/doc_thumbnails/list_view/2415239-class-notes-us-berkeley-compsci-61a-lecture15.jpg)
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
We will not grade answers written on scratch paper. All the work on this exam is my own. (please sign) For each of the expressions in the table below, write the output displayed by the interactive python interpreter when the expression is evaluated. If an error occurs, write error , but include all output displayed before the error. The rst two rows have been provided as examples. The interactive interpreter displays the value of a successfully evaluated expression, unless it is none. = b(x) a = a(6) def dash(x): return print(self. x) elastigirl = link(7, link(8)) elastigirl. first = elastigirl. rest. [6, 2] print(a. x, b. x) print(b. y, x) a. __str__() dash(b) print(elastigirl) Implement lowest, which takes a list of numbers s and returns a list of only the elements of s with the smallest absolute value. You may only write a single name in each blank. def lowest(s): """return a list of the elements in s with the smallest absolute value.