Which of the following are string methods? capitalize() title() upper() lower()
You have a mutable object. That means it’s type can change….
You have a mutable object. That means it’s type can change. True False
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1[’17’]…
dict1 = {‘cow’: 17, ‘chicken’: 88, ‘rooster’: 6} dict1 error cow chicken rooster
All Python objects contain which of the following (select al…
All Python objects contain which of the following (select all that apply)? A type, identifying what the object can do A unique ID, functioning as its location in memory A value A reference count
list1 = [1, 2, 3, 4, 5, 6] list1.insert(2) print(list1) erro…
list1 = list1.insert(2) print(list1) error
We can add items to lists. This means they are mutable. Tru…
We can add items to lists. This means they are mutable. True False
type(7 + 1.1) float error int str
type(7 + 1.1) float error int str
a = [5, 10, 15] b = a.copy() c = list(a) a[0] = 50 print(b)…
a = b = a.copy() c = list(a) a = 50 print(b) error a
15//7 _______ Answer for blank # 1
15//7 _______ Answer for blank # 1
birthdate = ’12/18/52′ birthdate.split() [’12/18/52′] [’12’…
birthdate = ’12/18/52′ birthdate.split() (’12’, ’18’, ’52’) error