What will be the output of the following Python code?
>>> a={4,5,6}
>>> b={2,8,6}
>>> a-bSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
90
Questions
5/5
Page
Pick an option on a question to see the right answer and solution.
>>> a={4,5,6}
>>> b={2,8,6}
>>> a-bSelect an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
for x in set('pqr'):
print(x*2)Select an option to see the answer and solution.
s={2, 5, 6, 6, 7}
sSelect an option to see the answer and solution.
nums = set([1,1,2,3,3,3,4,4])
print(len(nums))Select an option to see the answer and solution.
a={1,2,3}
b={1,2,3,4}
c=a.issuperset(b)
print(c)Select an option to see the answer and solution.
Select an option to see the answer and solution.
>>> a={3,4,5}
>>> b={5,6,7}
>>> a|bSelect an option to see the answer and solution.
Select an option to see the answer and solution.