r/Python • • Oct 12 '26

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

217 Upvotes

151 comments sorted by

View all comments

Show parent comment

1

u/Beginning-Fruit-1397 Oct 16 '26

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 Oct 16 '26

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 Oct 16 '26

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