<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ask(message='Are you sure? [y/N]'):
 """Asks the user his opinion."""

    agree = False
    answer = raw_input(message).lower()
    if answer.startswith('y'):
        agree = True
    return agree