How to get the index of an item in a list in Python?

You can use inbuilt method index() to get the index of an item in a list in Python as shown below –

Leave a Reply