Question
d1 = {"john":40, "peter":45}
d2 = {"john":466, "peter":45}
d1 == d2
a.
True
b.
False
c.
None
d.
Error
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output?
Similar Questions
Discover Related MCQs
Q. Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use
View solution
Q. Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
View solution
Q. Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
View solution
Q. Which of these about a dictionary is false?
View solution
Q. Which of the following is not a declaration of the dictionary?
View solution
Q. Which of the following isn’t true about dictionary keys?
View solution
Q. Which of the statements about dictionary values if false?
View solution
Q. If a is a dictionary with some key-value pairs, what does a.popitem() do?
View solution
Q. Which of the following functions is a built-in function in python?
View solution
Q. The function pow(x,y,z) is evaluated as:
View solution
Q. What is the output of the function complex() ?
View solution
Q. The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
View solution
Q. Which of the following functions accepts only integers as arguments?
View solution
Q. Suppose there is a list such that: l=[2,3,4].
If we want to print this list in reverse order, which of the following methods should be used?
View solution
Q. Which of the following is the use of function in python?
View solution
Q. Which keyword is use for function?
View solution
Q. Which are the advantages of functions in python?
View solution
Q. What are the two main types of functions?
View solution
Q. Where is function defined?
View solution
Q. What is called when a function is defined inside a class?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!