| 41. |
What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"}
for i,j in a.items():
print(i,j,end=" ")
|
||||||||
|
Answer:
Option (a) |
| 42. |
Which of the following isn’t true about dictionary keys?
|
||||||||
|
Answer:
Option (c) |
| 43. |
What will be the output of the following Python code?
>>> a={1:"A",2:"B",3:"C"}
>>> a.items()
|
||||||||
|
Answer:
Option (d) |
| 44. |
Which of the statements about dictionary values if false?
|
||||||||
|
Answer:
Option (c) |
| 45. |
If a is a dictionary with some key-value pairs, what does a.popitem() do?
|
||||||||
|
Answer:
Option (a) |
| 46. |
If b is a dictionary, what does any(b) do?
|
||||||||
|
Answer:
Option (a) |
| 47. |
Which of the following functions is a built-in function in python?
|
||||||||
|
Answer:
Option (d) |
| 48. |
Which of the following is the use of function in python?
|
||||||||
|
Answer:
Option (a) |