What will be the output of the following Python code?
>>> a={4,5,6} >>> b={2,8,6} >>> a+b
>>> 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
>>> a={3,4,5} >>> b={5,6,7} >>> a|b
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)
>>> b=a.add(4)
>>> b
>>> b=frozenset([3,4,5])
>>> a-b
>>> a={5,6,7} >>> sum(a,5)
निम्नलिखित Python कोड का आउटपुट क्या होगा?
>>> {x*2 for x in a|{4,5}}
>>> a={5,6,7,8}
>>> b={7,8,9,10}
>>> len(a+b)
a={1,2,3}
b={1,2,3,4}
c=a.issuperset(b)
print(c)