Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to make a script in python that can make a menu you can access at all times using a text based game

+12 votes
asked Jan 29 by Quinn Hitz (220 points)
I am making a text based adventure game and I need a way to let the user look at the options menu.

1 Answer

0 votes
answered Jan 29 by Peter Minarik (82,920 points)

You should get familiar with functions.

You can put code into functions that are commonly used (such as the Options menu) so you can call the function from various parts of your game logic allowing the user the access the Options.

For functions in Python, look at this tutorial.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...