sghimire2052 sghimire2052
  • 26-11-2019
  • Computers and Technology
contestada

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?

Respuesta :

usamasama
usamasama usamasama
  • 09-12-2019

Answer:

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', '!']

Answer Link

Otras preguntas

please help me with this
The ruler who worked hard to introduce Western social customs into Russia was
783/32 as a mixed number
what is 45% in simplest form
An 8 - meter- long stick was divided into 13 equal pieces. What was the length of each piece?
“Things fall apart; the center cannot hold; Mere anarchy is loosed upon the world…” What is anarchy?
Below each of the following incomplete sentences are two expressions. Complete each sentence by choosing the expression that is parallel in form with an express
Which characteristics must an object possess in order to be considered alive?
how would local winds be affected if water and land absorbed and released heat at the same rate?
Who developed the ideas that contradicted Ptolemy's geocentric model of the universe?