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
Help
1 Votes
About code
1 Votes
Quick question 🤔
1 Votes
Recursion
0 Votes
I need some help
1 Votes
Let Const Var
2 Votes
debugging course
1 Votes
How to mentione names in code?
1 Votes