How to find the index of an item in a list in Python
Use the buit-in index() method from list to find the index of an item in a list in Python. Remember the index count starts at 0, so the position of ‘mclaren’ is 2. car_brands = ['bmw', 'ferrari', 'mclaren'] position =…