forked from codenextwolf/TeamEdgeTerm0Python
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdebugger.py
More file actions
18 lines (14 loc) · 665 Bytes
/
debugger.py
File metadata and controls
18 lines (14 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import random
print("Let's play Rock Paper Scissors!")
# Challenge
# Find the bugs below:
while True:
userInput = input("Do you want to play rock, paper, or scissors?\n").lower()
computerSelection = random.choice(["rock", "paper", "scissors"])
print(f"You played: {userInput} and the computer played: {computerSelection}")
if userInput == computerSelection:
print("It's a tie!")
elif((userInput = "rock" and computerSelection = "paper") or (userInput = "paper" and computerSelection = "scissors") or (userInput = "rock" and computerSelection = "scissors")):
console.log("You Lose!")
elif:
console.log("You Win!")