Q&A Discussões
Dictionary and tuples.
4 Votos
6 Respostaspairs = {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 RespostasI fail to understand
2 Votos
4 RespostasEmoji inputs
3 Votos
1 RespostaHi guys,
1 Voto
1 RespostaMerge a dictionary
0 Voto
3 Respostas[Python] Dictionary inverter
12 Votos
3 Respostasraise
1 Voto
2 Respostas1 == True
2 Votos
2 RespostasOutput of dictionary
0 Voto
3 RespostasWhy there is an error
1 Voto
3 RespostasOutput of the key
0 Voto
11 RespostasTuples and dicts.
0 Voto
8 RespostasDictionary Functions
1 Voto
2 RespostasQuente hoje
Control Flow
2 Votes
Animations
2 Votes
How to use the get() method
2 Votes
Game Dev Path
1 Votes
So this what I'm trying to solve
2 Votes
How to get account back?
1 Votes
PHP Tutorial Idea
1 Votes
Problem whit Javascript
1 Votes