human
Solve the following python programming problem given the following code:
def confirm(message, default = True) : 
    default = ('Y/n' if default else 'y/N') 
    def _check(value) : 
        value = value.lower () 
        if (value not in ('y', 'n')) : 
            raise Exception ('Please enter either y or n') 
return value 
answer = prompt (message, message, _check) 
    return (answer in ('y', 'Y/n')) 

    
    

    Fix the buggy line: answer = prompt (message, message, _check)
assistant
#Here is Python code to fix the buggy line: answer = prompt (message, message, _check)
.

answer = prompt (message, default, _check)