playerone_score=0
playertwo_score=0
player_one=input("What is your name Player 1?")
player_two=input("What is your name Player 2?")
def question(question, answer):
global playerone_score
global playertwo_score
response = input(player_one + "," + question)
if response == answer:
print("Bat-tastic " + player_one)
playerone_score+=1
else:
print("Sorry " + player_one + ", You're not looking like Batman")
response = input(player_two + "," + question)
if response == answer:
print("Bat-tastic" + player_two)
playertwo_score+=1
else:
print("Sorry " + player_two + ", You're not looking like Batman")
question("What is Batman's real name", "Bruce Wayne")
question("What city does batman live in?", "Gotham")
question("What city does batman live in?", "Gotham")
print(playerone_score)
print(playertwo_score)
if playerone_score > playertwo_score:
print(player_one + "is BATMAN and " + player_two +" is Alfred....")
if playerone_score < playertwo_score:
print(player_two + "is BATMAN and " + player_one +"is Alfred....")
else:
print(player_one + " and " + player_two + " are BatMEN")
Bat-tasticRonit
Sorry Vance, You're not looking like Batman
Bat-tasticRonit
Sorry Vance, You're not looking like Batman
Bat-tasticRonit
Sorry Vance, You're not looking like Batman
3
0
Ronit is BATMAN and Vanceis Alfred....
Ronit and Vance are BatMEN