i'm making a small app with python run on terminal
and i would like to ask for easy way to make options Exmaple when user choose "a" it run add skill directly without pressing enter
Please advise your action :-
"A" => Add Skill.
"S" => Show Skills.
"U" => Update Skill.
"D" => Delete Skill.
"Q" => Quite App.
while True: # looping to validate user input
text_asking = input("""***Welcome to Skill Manager***
Please advise your action :-
"A" => Add Skill.
"S" => Show Skills.
"U" => Update Skill.
"D" => Delete Skill.
"Q" => Quite App.
Choose Action :""").lower().strip()
if text_asking in ("a", "s", "u", "d", "q"):
break
else:
os.system("cls")
print("Invalid input >> Please advise correct action \n\n")
continue
if text_asking == "a":
add_skill()
elif text_asking == "s":
show_skill()
elif text_asking == "u":
update_skill()
elif text_asking == "d":
delete_skill()
elif text_asking == "q":
quite()
i tried keyboard lib but didn't able to make my idea