Based on the code above, which numbers will be printed? None of them -1, 1, 3 0, 2, 4 -2, -1, 0, 1, 2, 3, 4
Blog
We are given the following string: x = “philadelphia eagles”…
We are given the following string: x = “philadelphia eagles” Fill in the blank in the code:
What is the output of the following? ‘plia e’ ‘ia e’ ‘hia e’…
What is the output of the following? ‘plia e’ ‘ia e’ ‘hia e’ ‘hia[space]’ Error
If a loop is running, it stops running if it hits a
If a loop is running, it stops running if it hits a
How many times would the following loop be iterated?
How many times would the following loop be iterated?
x = ‘hello’ Which method would produce ‘Hello’
x = ‘hello’ Which method would produce ‘Hello’
print(4 e4) error 4000 40,000 40000
print(4 e4) error 4000 40,000 40000
Immutable values are like boxes that cannot be opened and ch…
Immutable values are like boxes that cannot be opened and changed – we can just see the value inside True False
True + 2 = 3 2 False True
True + 2 = 3 2 False True
list1 = [‘phone’, ‘wallet’, ‘keys’, ‘hat’] list1.insert(2, 2…
list1 = [‘phone’, ‘wallet’, ‘keys’, ‘hat’] list1.insert(2, 2) print(list1) [‘phone’, ‘wallet’, 2, ‘keys’, ‘hat’] error [‘phone’, ‘wallet’, ‘keys’, ‘hat’, ‘keys’] [‘phone’, ‘wallet’, ‘keys’, ‘hat’, ‘phone’, ‘wallet’, ‘keys’, ‘hat’]