What is the output of the following? ‘plia e’ ‘ia e’ ‘hia e’ ‘hia[space]’ Error
Blog
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’]
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1[‘chic…
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1[‘chicken’] 88 error 6 17
type(7 + 1.1) float error int str
type(7 + 1.1) float error int str