LAZYPROGRAMMER Telegram 36
# sets
>x1 = {'foo', 'bar', 'baz'}
>x2 = {'baz', 'qux', 'quux'}

>x1 | x2 # same as x1.union(x2)
{'baz', 'quux', 'qux', 'bar', 'foo'}

> x1 & x2 # x1.intersection(x2)
{'baz'}

> x1 - x2 # x1.difference(x2)
{'foo', 'bar'}

> x1 ^ x2 # x1.symmetric_difference(x2)
{'foo', 'qux', 'quux', 'bar'}



tgoop.com/lazyprogrammer/36
Create:
Last Update:

# sets
>x1 = {'foo', 'bar', 'baz'}
>x2 = {'baz', 'qux', 'quux'}

>x1 | x2 # same as x1.union(x2)
{'baz', 'quux', 'qux', 'bar', 'foo'}

> x1 & x2 # x1.intersection(x2)
{'baz'}

> x1 - x2 # x1.difference(x2)
{'foo', 'bar'}

> x1 ^ x2 # x1.symmetric_difference(x2)
{'foo', 'qux', 'quux', 'bar'}

BY Azim Pulat


Share with your friend now:
tgoop.com/lazyprogrammer/36

View MORE
Open in Telegram


Telegram News

Date: |

How to Create a Private or Public Channel on Telegram? bank east asia october 20 kowloon Add the logo from your device. Adjust the visible area of your image. Congratulations! Now your Telegram channel has a face Click “Save”.! Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the “Yo” app was launched with the sole purpose of enabling users to send each other the greeting “Yo.” Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them.
from us


Telegram Azim Pulat
FROM American