What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.setdefault(3))
1.{1: ‘A’, 2: ‘B’, 3: ‘C’}
2.C
3.{1: 3, 2: 3, 3: 3}
4.No method called setdefault() exists for dictionary
Posted Date:-2021-12-31 09:34:33