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
Data analytics
1 Votes
Courses
0 Votes
Exercise codes and AI help
1 Votes
Make python in python
0 Votes
Why this code raises error?
0 Votes
Complied language.
3 Votes
Node.js
2 Votes
Can someone teach me c++ and Lua
0 Votes