Question: How many list objects are created by the code below? # # >>> x = [ 5 ] # >>> y = x # >>>
How many list objects are created by the code below? # # >>> x = [ 5 ] # >>> y = x # >>> z = y + x # >>> x.append(10)
# b. How many str objects are created by the code below?
# >>> x = 'ab' # >>> y = x # >>> z = x # >>> z += 'c'
# c. How many objects are created by the code below?
# >>> lst_one = [1] # >>> lst_two = [2] # >>> lst_three = [lst_one, lst_two]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
