Rather than hard code the choices, why not have an input from the user for their choice and a random number which dictates the computers choice.
@glendog: I agree. you can do this with input("What do you choose?")
Also, for the "draw" portion of the game code, instead of using And,you can use ==. Like this:
if human_choice == computer_choice:
print("blah blah blah")
To do the random choice is a bit harder.It took me awhile to find online when I wanted to do it. You will need to Import Random at the start of your code (import Random). It is an automatic module.
You will then use x = random.randit(1,3) to chose a number 1-3. Then:
if x == 1:
computer_choice = rock
elif x == 2
computer_choice == scissors
Nice job! if you are looking for fun projects, i would do Guess A Number! like they guess then Too Small! then they guess Too Big! ect.
Ihope this helped you on your coding career!!!
@quadeg1: I like your Rock Paper Scissors program! I made one (http://cyancoding.net16.net/website-programs/rock-paper-scissors/home\) that I created on Repl.it (the reason I don't link you to the actual repl is because it only got part of the job and I had to use my server for the rest).
Hey man! Great for a beginner, but there is still so much more you can do with this! I recommend doing Codecademy's Python course: www.codecademy.com I am almost done the course and it is quite good at teaching the language! It is all interactive coding as well, so you pick up on it quite fast! As others said, you can make the computers choice randomized, and add user input to allow the user to choose an option instead of hard coding their choice in for them!
Try randomly generating a number (I beleive you can import this function) between 1 and 3 - and assign 1, 2 and 3 to ROCK, PAPER and SCISSORS - to pick the computers go and then ask the user for an input using
UserChoice = str(input()).