R
Q. Suppose there are two sets, set1 and set2,where set1 is the superset of set2. It is required to get only the unique elements of both the sets. Which of the following will serve the purpose?
set1={2,3} set2={3,2} set3={2,1} if(set1==set2): print("yes") else: print("no") if(set1==set3): print("yes") else: print("no")
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. The function pow(x,y,z) is evaluated as
Q. If return statement is not used inside the function, the function will return:
Q. What is the output of the following program
Q. What is the output of the following program?
Q. What will be the output of the following Python code?
Q. What will be the output of the following code snippet?
Q. Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)
Q. Which of the following is the correct way to create a set in Python?
Discusssion
Login to discuss.