Find the index of the element “pineapple” in the list.
["apple", "banana", "pear", "pineapple"]
The index of the element "pineapple" in the list is 3.
Complete the following task based on the instruction and optional input provided.### Instruction:
Find the index of the element “pineapple” in the list.

### Input:
["apple", "banana", "pear", "pineapple"]

### Output:
The index of the element "pineapple" in the list is 3.