Predict the output from the following code. (2)
a={}
a[‘a’]=1
a[‘b’]=[2,4,6]
t={}
t[‘k1’]={“k1”:44,”k2”:54}
t[“k2”]= [1,2,3,4]
t.update(a)
print(a)
print(t)
*
Answers
Answered by
6
Output of a:
{'a': 1, 'b': [2, 4, 6]}
Output of t:
{'k1': {'k1': 44, 'k2': 54}, 'k2': [1, 2, 3, 4], 'a': 1, 'b': [2, 4, 6]}
Answered by
0
Answer:
bjjjjgffjkfddddxzzzzz
Similar questions