What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
1. {1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}
2.None
3.Error
4.[1,3,6,10]
Answer:1
Posted Date:-2021-12-31 09:35:03