In this lab students work independently or collaboratively on slicing and indexing Python values to develop a fundamental understanding of lists. Using the Python interpreter (or shell), students begin by exploring rudimentary topics in programming using arithmetic operators, string manipulation, and list expressions. After sufficient time has been spent exploring the basic operation of the interpreter, students are to compose multiple lists from two pre-defined lists, pi and e, and perform some list operations. This lab activity is useful for students who are new to lists.
Integrate pair programming when it is appropriate for students to collaborate on a lab, assignment, or project. Have the “driver” controls the mouse and the keyboard, while the “navigator” makes suggestions, points out errors, and asks questions. Partners routinely switch roles to gain the benefits of each role.
Supports Student-Focused Assessment through the inclusion of sections, such as 'Errors on Exceptions', that encourage students to generate errors and feel comfortable taking risks without their performance on the task having a negative impact on their grade.