Skip to content
Sign upLog in
← Back to Community

How do I create a main menu?

Profile icon

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.

Profile icon
Profile icon

I am pretty sure you can do

import replit (code here) replit.clear()

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