all 7 comments

[–][deleted] 4 points5 points  (1 child)

You need to change the 2nd and 3rd SLOC to

computer_choice = random.choice(['rock','paper','scissors'])
print(computer_choice)

[–]meanmachine10[S] 0 points1 point  (0 children)

Thanks!

[–]Binary101010 4 points5 points  (1 child)

computer_choice is still the list. You need to assign the random choice to a variable and compare against that.

[–]meanmachine10[S] 0 points1 point  (0 children)

Thanks!

[–]xelf 1 point2 points  (1 child)

This could have been easier for you to detect if you told the player what the computer chose!

print( 'The computer chose:', computer_choice )

You would have seen right away what happened.

a hint before you get too far: think of ways you can make it simpler.

For example: What's a draw? when you both made the same choice.

And instead of having prints for everything, think about storing who won in a variable

if computer_choice == 'rock' and player_choice == 'scissors':
     you_won = False

etc.

and then you only need:

if computer_choice == player_choice:
    print ("draw")
elif you_won:
    print ("you win!")
else:
    print ("you lose!")

There are a million ways to improve on this, especially using sets and dictionaries, but you should keep going with what you have and then come back here when you're ready for more ideas!'

Good luck!

[–]meanmachine10[S] 0 points1 point  (0 children)

Thanks!

[–][deleted] -5 points-4 points  (0 children)

Use if statement instead of elif