Ask Question
15 August, 22:39

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
Answers (1)
  1. 16 August, 01:24
    0
    x = a

    y = b

    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', '!']
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers