>>> s={5,6}
>>> s*3Select 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
2/5
Page
Pick an option on a question to see the right answer and solution.
>>> s={5,6}
>>> s*3Select an option to see the answer and solution.
Select an option to see the answer and solution.
s={4>3, 0, 3-3}
all(s)
any(s)Select an option to see the answer and solution.
z=set('abc')
z.add('xyz')
z.update(set(['p', 'q']))
zSelect an option to see the answer and solution.
>>> a={5,6,7}
>>> sum(a,5)Select an option to see the answer and solution.
x=set('abcde')
y=set('xyzbd')
x.difference_update(y)
x
ySelect an option to see the answer and solution.
>>> a={1,2,3}
>>> b=frozenset([3,4,5])
>>> a-bSelect an option to see the answer and solution.
>>> a={1,2,3}
>>> a.intersection_update({2,3,4,5})
>>> aSelect an option to see the answer and solution.
Select an option to see the answer and solution.
l=[1, 2, 4, 5, 2, 'xy', 4]
set(l)
lSelect an option to see the answer and solution.
Select an option to see the answer and solution.
>>> a=frozenset([5,6,7])
>>> a
>>> a.add(5)Select an option to see the answer and solution.
s1={1, 2, 3, 8}
s2={3, 4, 5, 6}
s1|s2
s1.union(s2)Select an option to see the answer and solution.
Select an option to see the answer and solution.
a=set('abc')
b=set('def')
b.intersection_update(a)
a
bSelect an option to see the answer and solution.
Select an option to see the answer and solution.
>>> a={1,2,3}
>>> b=a
>>> b.remove(3)
>>> aSelect an option to see the answer and solution.
Select an option to see the 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.