π Step 10: Define and call main function
This function runs the game.
- This functions should call the appropriate function that returns the file name.
- Call the appropriate function that takes the file name and opens and reads it.
Now we can call the function to run the game π
π‘ Hint
- By now, you should understand what each function does, how it works, and how to call it. Review your code so far or refer to the glossary if you need help.
- You can also run the πΎ project code to see how the program is expected to behave.
β Checker
Define main function
Type or paste your code and run.
Note: You do not call your main function here, only define it. But make sure to call it in your script.py file.