-
Strings
What is the value of variable `u` from the code below?
once = "umbr"
-
Comparisons
What does the code below print?
pset_time = 15
-
Branching
What’s printed when x = 0 and y = 5?
x = float(input("Enter a number for x: "))
-
While Loops
In the code below from Lecture 2, what is printed when you type “Right”?
n = input("You're in the Lost Forest. Go left or right? ")
-
For Loops
What is printed when the below code is run?
mysum = 0
In-Class Questions and Video Solutions
Lecture 2
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