import random
from words import words
import string
def get_valid_word(word):
    word = random.choice(words)
    while '-' in word or ' ' in word:
        word = random.choice(words)
    
    return word
def hangman():
    word = get_valid_word(words)
    word_letters = set(word)  # letters in word
    alphabet = set(string.ascii_uppercase)
    used_letters = set()
    
    user_input = ("type something: ")
    print(user_input)
I have been following along a YouTube python project, but when I use the import function the code doesn't seem to run. It executes nothing and says its done.
 
     
     
    