![](https://cos-cdn.shuashuati.com/pipixue-web/2020-1231-2005-12/ti_inject-812ce.png)
【ask函数第1题】对于函数ask,请填写下面第一条横线上的答案,使得运行情况成立,并且使得满足出现题目中的上下文的提问回答。defask(prompt,hint="yesorno",chance=_______):whilechance>0:answer=input(prompt)ifanswer.lower()in('y','yes'):print("Thankyou")returnTrueifanswer.lower()in('n','no'):print("Whynot")returnFalseelse:chance-=1print(________)print("Sorry,youhavetriedtoomanytimes.")>>>ask("DoyoulikeSciPy?")DoyoulikeSciPy?What?yesornoDoyoulikeSciPy?enyesornoSorry,youhavetriedtoomanytimes.