0
I am confused in get method is working in dictionary
3 Answers
+ 5
dicTioNary.get(x,y)
x ==> key
y ==> value to be returned if x key doesn't exist in dictionary .
+ 4
Akash Prasad you declared first
1:"Apple"
True:False
Here True is considered as numeric value 1 . so your previous 1:"Apple" gets override by 1:False
0
SAYEDđ§đ©đ”đž thanks your help but when i print dictionary again the key and their values get randomised i don't why