Q&A Discussões
dict comprehension
0 Voto
2 RespostasRegex with python
2 Votos
6 RespostasImmutable objects
1 Voto
2 RespostasLetter Counter
0 Voto
1 Respostapairs = {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 Votos
4 RespostasQuente hoje
Que le falta
3 Votes
Hack
2 Votes
Checking errors programatically.
2 Votes
Problem solving
3 Votes
Python for data science
2 Votes