We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
print('rock,paper, scissor Game*') #step1 import random #step 2 item_list=["rock","paper","scissor"] user_choice=input("choice the one(rock,paper, scissor):") comp_choice=random.choice(item_list) print(f"user choice= {user_choice}, computer choice= {comp_choice}") #step3 if user_choice==comp_choice: print('match tie') elif user_choice=='rock': if comp_choice=='paper': print("computer win") else: print('you win')
elif user_choice== 'paper': if comp_choice=='rock': print('you win') else: print(" computer win")
elif user_choice=='scissor' : if comp_choice=='rock': print('computer win') else: print('you win') else: print('Provide Valid Info')
print("***** Thanks *****")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
print('rock,paper, scissor Game*')
#step1
import random
#step 2
item_list=["rock","paper","scissor"]
user_choice=input("choice the one(rock,paper, scissor):")
comp_choice=random.choice(item_list)
print(f"user choice= {user_choice}, computer choice= {comp_choice}")
#step3
if user_choice==comp_choice:
print('match tie')
elif user_choice=='rock':
if comp_choice=='paper':
print("computer win")
else:
print('you win')
elif user_choice== 'paper':
if comp_choice=='rock':
print('you win')
else:
print(" computer win")
elif user_choice=='scissor' :
if comp_choice=='rock':
print('computer win')
else:
print('you win')
else:
print('Provide Valid Info')
print("***** Thanks *****")
The text was updated successfully, but these errors were encountered: