Source Code:
(back to article)
fruits = ["banana", "orange"] index = fruits.index("orange") print(index) # Output: 1
Result:
Report an issue