61. What will be the output of the following Python code, if s1= {1, 2, 3}?
s1.issubset(s1)
s1.issubset(s1)
62. What will be the output of the following Python code snippet?
{a**2 for a in range(4)}
{a**2 for a in range(4)}
63. What will be the output of the following Python code snippet?
z=set('abc$de')
'a' in z
z=set('abc$de')
'a' in z
64. The difference between the functions discard and remove is that:
65. What will be the output of the following Python code?
s1={3, 4}
s2={1, 2}
s3=set()
i=0
j=0
for i in s1:
for j in s2:
s3.add((i,j))
i+=1
j+=1
print(s3)
s1={3, 4}
s2={1, 2}
s3=set()
i=0
j=0
for i in s1:
for j in s2:
s3.add((i,j))
i+=1
j+=1
print(s3)
66. Which of these about a frozenset is not true?
67. What will be the output of the following Python code?
>>> a={1,2,3}
>>> {x*2 for x in a|{4,5}}
>>> a={1,2,3}
>>> {x*2 for x in a|{4,5}}
68. What is the purpose of the difference() method for sets?
69. What will be the output of the following Python code?
>>> a={5,6,7,8}
>>> b={7,8,10,11}
>>> a^b
>>> a={5,6,7,8}
>>> b={7,8,10,11}
>>> a^b
70. The output of the following code is: class<'set'>.
type({})
type({})