T
Q. What is the output of the following code when executed in Python shell?
>>> d = {1,2,3} >>> d.intersection_update({2,3,4,5}) >>> d
The intersection_update method returns a set that contains the intersection of the two sets.
You must be Logged in to update hint/solution
Q. Which of the following functions converts a “string” to a “float”?
Q. What is the output of the following Python code?
Q. What is the output of the following program
Q. What is the order of namespaces in which Python looks for an identifier?
Q. What is the output of the following code?
Q. All keywords in Python are in
Q. Which command is used to add an element in the list
Discusssion
Login to discuss.