python作业怎么做_老师布置的关于python的作业,有几个要求不知道怎么做,紧急,在线等...

1)Usepythonliststostore14triviaquestionsandanswersofyourchoice.2)Outofthe14questions,asktheuser4randomlyselectedquestionseachround.3)Makesureaquestionisnotrepeatedduri...

1)Usepython lists to store 14 trivia questions and answers of your choice.2)Outof the 14 questions, ask the user 4 randomly selected questions each round.

3)Makesure a question is not repeated during the run of the program.

4)Whenthe user answers the question, check if the answer is correct or not. Display amessage indicating correct or incorrect

5)Recordthe score: 1 point for each correct answer.

6)atthe end of the 4 questions:

(A) Displaythe score.

(B)Askthe user if they would like to play another round (another 4 questions)

(C )Ifthe user wants to play another round, keep the same score. Do not repeatquestions between rounds.

(D) Ifthe user says no, then exit the game

7)Continuouslycheck if all of the questions have been asked, if so then display an apologymessage and exit.我不知道如何陈列14个问题随机抽取,然后还得不重复,然后下一轮再抽取还得不重复,求大神告知,我不知道要怎么办,还有我写的一点句子不知道为什么只要打出任意字母就可以得分,程序无法判断对错,我不知道我哪里错了。

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值