Python Please use python for jeopardy game Determine either
Python
Please, use python for jeopardy game. Determine either UDP socket or TCP socket in implementing the application.
NB: please, screen shot your running program step by step
Thanks
Solution
def main():
correct = 0
question = 0
name = raw_input(\"What\'s your name \")
print(\"Hello \" + name)
print(\"PREPARE TO PLAY!\")
while question < 5:
answer = raw_input(Questions[question])
print(answer + \" \" + Answers[question])
question = question + 1
if answer == Answers[question]:
correct = correct + 1
print(\"Correct!\")
else:
print(\"Incorrect\")
print(str(correct) + \"/5 correct\")
main()
