πŸ“Œ Step 10: Define and call main function

This function runs the game.

  1. This functions should call the appropriate function that returns the file name.
  2. 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.