Category : keyboard-input

I’ve got code: def get_choice(choices): choice2 = "" while choice2 not in choices: choice = input("Is this ur first use [%s]:" % ", ".join(choices)) choice2 = choice.lower() return choice2 my_choice = get_choice(["yes", "no", "y", "n"]) It’s working fine. Now, I would like to run this script automatically, so without any interaction from user. Is it ..

Read more