Skip to content

Commit

Permalink
Issue Solved...
Browse files Browse the repository at this point in the history
Issue: Adding an option to exit from main menu of tool  is now solved!!!
  • Loading branch information
sarvinshrivastava committed Jan 29, 2024
1 parent a7b5b52 commit 236c5c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ def pre_setup():
print(Fore.GREEN + "1." + Fore.BLUE + "JOSAA")
print(Fore.GREEN + "2." + Fore.BLUE + "CSAB" + Fore.RESET)
print(Fore.GREEN + "3." + Fore.BLUE + "About" + Fore.RESET)
option = input("Select Option (1 to 3) : ")
print(Fore.GREEN + "4." + Fore.BLUE + "Exit" + Fore.RESET) #adding exit function in main menu
option = input("Select Option (1 to 4) : ") #increasing last choice value
if option == '1':
josaa_rounds_year()
elif option == '2':
csab_rounds_year()
elif option == '3':
show_about_section()
elif option == '4': #adding exit condition
print("Exiting...") #printing exiting
exit(0) #calling exit function
else:
pre_setup()

Expand Down

0 comments on commit 236c5c0

Please sign in to comment.