Advertisements
Advertisements
Question
Write the output on execution of the following Python code:
def Change (X):
for K,V in X.items():
Ll.append(K)
L2.append(V)
D={1:"ONE”,2:"TWO",3:"THREE"}
L1=[]
L2=[]
Change (D)
print (L1)
print (L2)
print (D).Code Writing
Advertisements
Solution
[1,2,3]
[ΌΝΕ','TWO','THREE']
[1:'ΟΝΕ',2:'TWO',3:‘THREE']shaalaa.com
Is there an error in this question or solution?
