I am creating a hangman game where i have a list that contains 5 secret words and a hint for each respective word that is read from a text file:
list = ['word1', 'hint1', 'word2', 'hint2','word3', 'hint3','word4', 'hint4','word5', 'hint5']
I need to create two separate lists only containing the secret words and hints respectively. How would I go about doing that?
desired outcome:
words = ['word1','word2','word3','word4','word5']
hints = ['hint1','hint2','hint3','hint4','hint5']