Discussioni Q&A
dict comprehension
0 Voti
2 RisposteRegex with python
2 Voti
6 RisposteImmutable objects
1 Voto
2 RisposteLetter Counter
0 Voti
1 Rispostapairs = {1: "apple",
"orange": [2, 3, 4],
True: False,
None: "True",
}
print(pairs.get("orange"))
print(pairs.get(1))
print(pairs.get(12345, "not in dictionary"))
the output is
[2, 3, 4]
False
not in dictionary
why is print(pairs.get(13345,"not in dictionary")) giving the output not in dictionary.pls I nid explanation
2 Voti
4 RispostePopolare oggi
Where is the bug?
3 Votes
Pointers cpp
2 Votes
Is pro worth the money ?
1 Votes
Drawing images in java
2 Votes