Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

trivia python game

#starting info
score = 1
questions = 1
print("Starting Game!!")
print("Started!")


#actual game
print("Add Question Here")
ans = input("Answer Here-->")
if ans.lower() == 'Answer':
    print(calculating)
    time.sleep(1)
    print("Correct!)
    score += 1
else:
    print("Wrong")
#copy paste the code above again and again to make more questions
 
PREVIOUS NEXT
Tagged: #trivia #python #game
ADD COMMENT
Topic
Name
2+3 =