Bir liste için ["foo", "bar", "baz"] ve listedeki bir öğe "bar", Python'da indeksini (1) almanın en temiz yolu nedir?
Example: For a list ["foo", "bar", "baz"] and an item in the list "bar", how to get its index (1) in Python.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.