What will be the output of the following Python code?
>>> a={4,5,6} >>> b={2,8,6} >>> a-b
>>> a={5,6,7,8} >>> b={7,8,10,11} >>> a^b
>>> s={5,6} >>> s*3
Is the following Python code valid?
a={3,4,{7,5}} print(a[2][0])
निम्नलिखित Python कोड वैलिड है?
>>> a=frozenset([5,6,7])
>>> a
>>> a.add(5)
>>> a={3,4,5}
>>> a.update([1,2,3])
>>> a={1,2,3}
>>> a.intersection_update({2,3,4,5})
>>> b=a >>> b.remove(3)
>>> b=a.copy() >>> b.add(4)