mercredi 24 juin 2015

IF statment inside a IF?

Python How would I make this work? It does not print it.

if player1 == "Rock":
    if player2 == "Paper":
        print("Player 2 Wins!")
    if player2 ==  "Scissors":
        print("Player 1 Wins!")
    if player2 == "Rock":
        print("Draw")

Aucun commentaire:

Enregistrer un commentaire