Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

Tic Tac Toe with Python - Create function to ask for user inputs

Now we will define another function named ask_question which will ask a Yes/No question to the use.

INSTRUCTIONS
  • Define a function named ask_question as shown below:

    def <<your code goes here>>(question):
        response = None
        while response not in ("y", "n"):
            response = input(question).lower()
        return response
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...