<jupyter_start><jupyter_text>Learning objectives:* How to define tuples and tuples.* Main difference between sets, tuples and lists<jupyter_code>shape = (228, 228, 3)
print(shape)
shape[3]
shape[1:]
shape[1] = 128
## tuple iteration
for dim in shape:
    print(dim)
shape.count(-1)<jupyter_output><empty_output><jupyter_text>Sets<jupyter_code>set1 = set(['laptop', 'bag', 'book', 'laptop', 'book', 'kite'])
set1
for item in set1:
    print(item)
set1.add("cake")
set1
set1.pop()
set1<jupyter_output><empty_output><jupyter_text>Set operators<jupyter_code>seta = set(['card', 'upi', 'paypal', 'cash'])
setb = set(['paypal', 'revolut', 'n26'])

setc = seta | setb
setc
seta & setb
seta.intersection(setb)
seta - setb
seta ^ setb<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup