Horje
set operators Code Example
set operators
Ops 		P	⨯	 \	 =	 ≠
Front 		⊂	⊄	⊆	⊈	⊊ 
Back 		⊃	⊅	⊇	⊉	⊋
Inside 		∀	∃	∊	∍
Objects 	∅	∞	∆	∇
set operators
>>> a = {1, 2, 3, 4, 5, 6}
>>> b = {4, 5, 6, 7, 8, 9}
>>>
>>> a.update(b)          # a "union" operation
>>> a
{1, 2, 3, 4, 5, 6, 7, 8, 9}
>>>
>>> a &= b               # the "intersection" operation
>>> a
{4, 5, 6, 7, 8, 9}
>>>
>>> a -= set((7, 8, 9))  # the "difference" operation
>>> a
{4, 5, 6}
>>>
>>> a ^= b               # the "symmetric difference" operation
>>> a
{7, 8, 9}




Python

Related
python pipe where Code Example python pipe where Code Example
sorted key len python Code Example sorted key len python Code Example
Limits the result count to the number specified Code Example Limits the result count to the number specified Code Example
del en python Code Example del en python Code Example
Django Signup urls.py Code Example Django Signup urls.py Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7