New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
pairs = {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 AnswersHot today
Media on HTML
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
Code Playground
0 Votes
How to solve this
1 Votes
Java project
0 Votes
Editor HTML
0 Votes
Jungle capming
0 Votes