Rock Paper Scissors - Python 3 - beginner

后端 未结 2 1144
南方客
南方客 2021-01-29 12:00

I\'m suppose to simulate a rock paper scissors game and this is what I have so far. It\'s not letting me input letters into the scoregame function. How can I fix th

2条回答
  •  一生所求
    2021-01-29 12:54

    You are using letters without quotes so its looking for a Variable called P but what you want is a String "P" so put the letters in quotes:

    if player1 == "P" and player2 == "S":
    

提交回复
热议问题