days = ['Friday', 'Monday']
val1 = (('Friday, 23,4), ('Monday', 233,4), ('enjf', 33,2))
val2 = (('Friday, 3,4), ('Monday', 33,2))
So the upper one is just an example. What I want to do is that I want to get a total list of two tuples that contain the same string.
So for upper example, I would be expecting [('Friday, 23,4)('Friday, 3,4)] if I want tuples of 'Friday'. (This is just an example and I'm not trying to figure out the code for me to get the above result)
However, I wanna use this function in any case that has the same format as the above examples; multiple tuples in a list. Is there any way that I could use list comprehensions using filters to get such results?