Given a list ["foo", "bar", "baz"] and an item in the list "bar", how do I get its index (1) in Python?
["foo", "bar", "baz"]
"bar"
1
0 Replies
Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.
Follow us on:
Quick Links
Policies
Subscribe to get latest updates