def has_multiple_words(text):  # accepts input from users
    """ check if user entered multiple words and convert them into 1 hypenated words"""
    words = (text.lower()).split()
    key_word = ""
    if len(words) > 1:
        key_word += "-".join(text.split())
    else:
        key_word += text

    return key_word