I am thinking:
value = 3
s1 = {1,2,3,4,5}
s2 = {6,7,8,9,0}
s3 = {11,12,13,14,15}
if value in '..one of those sets..':
'..give me that set..'
Is there an easier way to do this, apart from using if
/elif
?
Is there easier way to get in
which set/list/tuple?