Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
In this step, we will be creating a function display_instructions
that will display various instructions on screen.
Define a function named display_instructions
as shown below:
def <<your code goes here>>():
print(
"""
Welcome to a game of Tic-Tac-Toe. You will be playing against an AI.
You will be able to make your move on the board by entering any number from 0 - 8.
The number will correspond to the board position as shown below:
0 | 1 | 2
---------
3 | 4 | 5
---------
6 | 7 | 8
May the best player win!\n
"""
)
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...