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’]
Blog
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
x = 12 + 7 # print(x) 19 error x
x = 12 + 7 # print(x) 19 error x
names = ‘Captain America’, ”’T’Challa”’, ‘Carol Danvers’ t…
names = ‘Captain America’, ”’T’Challa”’, ‘Carol Danvers’ type(names) Note: ‘T’Challa’ is surrounded by double quotation marks tuple str error list
In Python, the name of your variable is just a reference to…
In Python, the name of your variable is just a reference to the object True False
list1 = [1, 2, 3, 4, 5, 6] list1.insert(2) print(list1) erro…
list1 = [1, 2, 3, 4, 5, 6] list1.insert(2) print(list1) error [1, 2, 3, 4, 5, 6, 2] [1, 2, 2, 3, 4, 5, 6]
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1[’17’]…
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1[’17’] error cow chicken rooster
18 % 4 _______ Answer for blank # 1
18 % 4 _______ Answer for blank # 1
Following this code, what would be the value of c?
Following this code, what would be the value of c?