dis is my ONE-LIne (that i tested) code:
(indent)
import random
def d():
print(“Welcome to dudu’s rOcK, pApEr, ScIsSoRs bot!”)
while True:
choice=input(“Choose ‘rOcK’, ‘pApEr’, or ‘ScIsSoRs’: “)
computer_choice=random.randint(0,2)
# 0, rock, 1, paper, 2, scissors
if choice==”rOcK”:
if computer_choice==0:
print(“Tie!”)
elif computer_choice==1:
print(“Defeat!”)
if computer_choice==2:
print(“Victory!”)
if choice==”pApEr”:
if computer_choice==0:
print(“Victory!”)
elif computer_choice==1:
print(“Tie!”)
if computer_choice==2:
print(“Defeat!”)
if choice==”ScIsSoRs”:
if computer_choice==0:
print(“Defeat!”)
elif computer_choice==1:
print(“Victory!”)
if computer_choice==2:
print(“Tie!”)
while True:
d()
<audio style=”display: none;” controls=”controls”></audio>