I was given a prompt: Define a function: takes no args, prompts the user for an input. If the user inputs a string with any special characters(?,!,$,etc...), return False. Otherwise, return the input word.
My code currently is:
def hasspec():
     key = input('Give a word: ')
     for q in key:
        if q == "abcdefghijklmnopqrstuvwxyz":
            return key
        else:
            return False
I was expecting to be asked for an input, but instead I am returned: <function hasspec>
 
     
     
    