Discussions Q&R
Dictionary and tuples.
4 Votes
6 Réponsespairs = {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 Votes
4 RéponsesI fail to understand
2 Votes
4 RéponsesEmoji inputs
3 Votes
1 RéponseMerge a dictionary
0 Vote
3 Réponses[Python] Dictionary inverter
12 Votes
3 Réponsesraise
1 Vote
2 Réponses1 == True
2 Votes
2 RéponsesOutput of dictionary
0 Vote
3 RéponsesWhat is the answer to no.3
2 Votes
3 RéponsesWhy there is an error
1 Vote
3 RéponsesOutput of the key
0 Vote
11 RéponsesTuples and dicts.
0 Vote
8 RéponsesDictionary Functions
1 Vote
2 RéponsesAujourd'hui en vedette
AI Takeover
2 Votes
Using Python on VScode
1 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Wayss
0 Votes
Hearts
0 Votes