python input out of if cycle

Viewed 18

how do i make that the second com input works, because now when i enter a command that isnt in the code, everything works, it prints out that theres no such command and it lets me input again. But when i input help again, it just exits the code


#help menu
if comm == "help":
    print("wlist - Prints out available wordlists, with the directory")
    print("menu - retun to main title, if you do not like the helplist")
    print("exit - exit the program")
else:
    print(f"{bcolors.FAIL}command {bcolors.ENDC}" + comm + f"{bcolors.FAIL} not found.{bcolors.ENDC}")
comm = input(f"{bcolors.BOLD}brut3kr4k> {bcolors.ENDC}")
0 Answers
Related