I'm trying to write a small program for my python course(teaching myself), kinda like a dictionary using lists. One list has a phrase/word in it and the other list has the meaning of the phrase/word. Through user input the user can type the word they are searching for and the words meaning would be shown. I'm having trouble trying to get the meaning to be shown. My code is below: "aldo" is my first input(word), "my name" is my second input(meaning)
word = []
meaning = []
user_word = input("Enter word: ")
user_meaning = input("Enter Meaning: ")
print(word)
print(meaning)
word = word + [user_word]
meaning = meaning + [user_meaning]
user_search = input("What word/phrase would you like to search: ")
search_index = word.index(user_search)
print(user_search + meaning.index(search_index))