0
import os  
import sys    
import random     
import winsound

def question():

print("1.) What is currently the most popular MOBA?")
print("A.) League of Legends")
print("B.) Smite")
print("C.) Dota 2")
print("D.) Call of Duty")
answer = input()
if answer == "A" or answer == "a":
    print("Correct")
    winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
else :
    print("Incorrect")
    winsound.PlaySound("SystemHand", winsound.SND_ALIAS)
question()

def question2():

print("2.) Which of the following is a 100 player royal game?")
print("A.) Call of Duty")
print("B.) Fortnite")
print("C.) CSGO")
print("D.) Dota 2")
answer1 = input()
if answer1 == "B" or "b":
    print("Correct")
    winsound.PlaySound("SystemExit", winsound.SND_ALIAS)
else:
    print("Incorrect")
    winsound.PlaySound("SystemHand", winsound.SND_ALIAS)

question2()

J...S
  • 5,079
  • 1
  • 20
  • 35
  • Python's `or` doesn't work like you think it does; read the linked duplicates for an explanation. – DSM Mar 17 '18 at 15:58

1 Answers1

0

Correct this line

if answer1 == "B" or "b":

To

if answer1 == "B" or answer1 ==  "b":
Xay
  • 248
  • 3
  • 10