What will be the output of the following Python code snippet? a={} a['a']=1 a['b']=[2,3,4] print(a)
1.Exception is thrown
2. {‘b’: [2], ‘a’: 1}
3.{‘b’: [2], ‘a’: [3]}
4.{‘b’: [2, 3, 4], ‘a’: 1}
Posted Date:-2021-12-31 09:58:50