-
Tuples
Examine the code below. What does
always_sunny(('cloudy'), ('cold',))
evaluate to?def always_sunny(t1, t2):
-
Simple Lists
What is the value of L after you run the code below?
L = ["life", "answer", 42, 0]
-
List Operations
What is the value of L3 after you execute all the operations in the code below?
L1 = ['re']
-
List Aliasing/Mutation
What is the value of brunch after you execute all the operations in the code below?
L1 = ["bacon", "eggs"]
In-Class Questions and Video Solutions
Lecture 5
Instructors: | |
Course Number: |
|
Departments: | |
As Taught In: | Fall 2016 |
Level: |
Undergraduate
|
Learning Resource Types
assignment
Problem Sets
notes
Lecture Notes
theaters
Lecture Videos
assignment_turned_in
Programming Assignments with Examples