fine elemnt in a list by id code example
Example 1: how to find an element in a list python
# app.py
streaming = ['netflix', 'hulu', 'disney+', 'appletv+']
index = streaming.index('disney+')
print('The index of disney+ is:', index)
Example 2: find all element in list python
indices = [i for i, x in enumerate(my_list) if x == "whatever"]