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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!