Q&A Discussies
dict comprehension
0 Stemmen
2 AntwoordenRegex with python
2 Stemmen
6 Antwoordenstrings & variables part 2
0 Stemmen
2 AntwoordenImmutable objects
1 Stem
2 AntwoordenI need your help with this
0 Stemmen
1 AntwoordLetter Counter
0 Stemmen
1 Antwoordpairs = {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 Stemmen
4 AntwoordenPopulair vandaag
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes