127k views
4 votes
Given the following code,

a = ['m', 'r', 'y']
b = ['e', 'r', '!']
ab = zip (a, b)

Which of the following statements will assign list a to x and list b to y?

1 Answer

5 votes

Answer:

x = a

y = b

Step-by-step explanation:

list a is ['m', 'r', 'y']x = a

to assign list to another variable , need to initialise new variable and assign that variable to list a

where a = ['m', 'r', 'y']

now x = ['m', 'r', 'y']

Similarly,

b = ['e', 'r', '!']

y = b

y = ['e', 'r', '!']

User MD Iyasin Arafat
by
9.0k points