Define a function named get_yes_or_no that consumes a string containing thequestion to which the user is responding. The function should repeatedlyask the user to enter either 'yes' or 'no' in response to the question untilthe user enters one of these values. The function should return the users response.Test your function thoroughly. You do not need assertEqual statements for this function.
this is for python.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here