u/Big_Neighborhood9130

What is the actual use of sets

I can see tons of use cases for list, tuples and dictionaries. But I have a really hard time understanding why you would ever use a set with maybe the exception of names so you don't get duplicates?

I believe this understanding is flawed because I found even the simplest things in Python are super powerful I'm just not sure what it is

reddit.com
u/Big_Neighborhood9130 — 17 days ago

I am learning about sentinel values and what I can't wrap my head around is why they are different from just termination conditions. Basically it sounds like it's an implicit condition to stop versus an inferred condition.

reddit.com
u/Big_Neighborhood9130 — 19 days ago