languages = ["English", "Spanish", "French"]
current_lang = "Spanish"
try:
# Use the index() method to find the index of the element
index = languages.index(current_lang)
print(f"The index of '{current_lang}' in the languages list is: {index}")
except ValueError:
print(f"'{current_lang}' is not found in the languages list.")