单项选择题
【ask函数第1题】对于函数ask,请填写下面第一条横线上的答案,使得运行情况成立,并且使得满足出现题目中的上下文的提问回答。 def ask(prompt, hint = "yes or no", chance = _______): while chance > 0: answer = input(prompt) if answer.lower() in ("y", "yes"): print("Thank you") return True if answer.lower() in ("n", "no"): print("Why not") return False else: chance -= 1 print(________) print("Sorry, you have tried too many times.") >>> ask("Do you like SciPy?") Do you like SciPy? What? yes or no Do you like SciPy? en yes or no Sorry, you have tried too many times.
A.lower()
B.lower()
C.")