DS160123 Answer the following:

Date : 12/02/2023
d = {‘A’:65, ‘B’:66, ‘C’:67}
A B

  1. print(d.popitem()) (a) Not found
  2. print(d.get(‘A’)) (b) None
  3. print(d.get(‘a’)) (c) 65
  4. print(d.get(‘D’,Not found’)) (d) (‘C’ 67)
  1. → (d)
    2 → (c)
    3 → (b)
    4 → (a)
2 Likes

@kharshavardhan31
Correct answer :+1: keep it up

1 Like