What will be the output of the following Python code snippet?
d = {"john":40, "peter":45}
"john" in d
d1 = {"john":40, "peter":45}
d2 = {"john":466, "peter":45}
d1 == d2
d1 > d2
d["john"]
print(list(d.keys()))
a={1:"A",2:"B",3:"C"}
for i,j in a.items():
print(i,j,end=" ")
print(a.get(1,4))
a={1:"A",2:"B",3:"C"} print(a.get(3))
निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?
a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"} b={4:"D",5:"E"} a.update(b) print(a)
निम्नलिखित Python कोड का आउटपुट क्या होगा?
a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
a={1:"A",2:"B",3:"C"} a.clear() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
a={1:5,2:3,3:4} a.pop(3) print(a)