हिंदी

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 - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

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).
कोड लेखन
Advertisements

उत्तर

[1,2,3]
[ΌΝΕ','TWO','THREE']
[1:'ΟΝΕ',2:'TWO',3:‘THREE']
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Set 4

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×