Create a function that reverses the items in a list.

Note: Creating a new function is unnecessary as there is a built in reverse method for lists, but one could make a function that calls this one.

```
def reverse(list):
return list.reverse()
```

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true?

a. The UML models a parameter of an operation by listing the parameter name, followed by a colon and the parameter value between the parentheses after the operation name. b. The UML indicates an operation’s return type by placing a colon and the return value after the parentheses following the operation name. c. UML class diagrams do not specify return types for operations that do not return values. d. Declaring instance variables public is known as data hiding or information hiding.

Computer Science & Information Technology

Using layout managers ________.

a. provides the greatest level of control over a GUI’s appearance b. can be faster than creating a GUI with absolute positioning c. allows the programmer to specify the exact location of each GUI component with respect to the upper-left corner of the Container d. allows the programmer to specify the exact location of each GUI component with respect to the lower-left corner of the Container

Computer Science & Information Technology