Project- Game of Tic Tac Toe with Python

4 / 16

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
    
See Answer

No hints are availble for this assesment


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

Loading comments...