I have a list of tuples:
list_of_tuples = [('4', 35.26), ('1', 48.19), ('5', 90.0), ('3', 90.0)]
tuple[0] is an item_ID
tuple[1] is an angle
I have a list of item_IDs I want to remove/ignore from the list:
ignore_IDs = [5, 3]
I need to find the smallest angle in the list_of_tuples as long as its ID is not in ignore_IDs.
This is used in a function where the angles change and the IDs to ignore change.
Can anyone help me out?
Apologies if explained badly.