Ask coding questions

← Back to all posts
How do I create a main menu?
Markmjack360

I have an initial list of hydraulic calculators that a user can choose from. What I would like to do is have that list disappear when an option is selected and then give the user the option to return to the main menu later on when prompted. Is something like this possible? If so, what do I need to do? Any and all help is greatly appreciated.

Voters
Markmjack360
Comments
hotnewtop
TheDNAHero

I am pretty sure you can do

just import the module and do replit.clear() when you want to clear the screen