import cli_menu as clm import os debug = True def main(debug): play = True menu = clm.cli_menu() # menu.menu(input("Make your choice: ")) while play: # Clear the screen play = menu.menu() os.system('cls' if os.name == 'nt' else 'clear') # will automatically break the loop if you select 'q' main(debug)