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
Help
1 Votes
Python stressed me out
1 Votes
Course Doubt
1 Votes
Data analysis
0 Votes
Help
0 Votes
How do i make a lexer and parser
1 Votes