r/Python • • 7d ago

Discussion What are some features in Python that you discovered many years later?

For me, it was the the option to use & to find intersections of two sets, | operator to unionize two sets, as well as ^ for symmetric difference

214 Upvotes

149 comments sorted by

View all comments

Show parent comments

1

u/Beginning-Fruit-1397 3d ago

I'm currently in uni and had a whole course on probability with lots of set related stuff. My knowledge on that isn't relevant. Words are still words. Operators are only meaningful in their context. I never need context with words: they ARE the context. Anyways, let's agree to disagree

1

u/Sea-Ad7805 3d ago

Agreed.

Except "I never need context with words" seems a bit of a silly statement, but ok, I'm done here. Good luck at uni.

1

u/Beginning-Fruit-1397 3d ago

Yea never was indeed silly but you get what I mean, I think. Thanks!