There've been some improvements to this challenge, and the experience should be a lot smoother!
Check out the Hints and Answer sections below if you need help, and please after that post any feedback or questions you have below, and we and other users can help out!
- Remember the
\n at the end of the argument to
- In the
if you need to use
else lines must each end with
- Output from the
print must match exactly, including spaces. You can copy and paste from the Task in the challenge.
You can use the in-challenge per-Task Solutions and the entire Answer, and can use the Toggle Navigation button (or Table of Contents button) at the top of the challenge to move forward so you're not stuck!
You can check out the Answer below or post a question too!
- As it refers to an older version of the challenge, not the greatest option, but there may be some useful information in the old 3.8 topic. It's more here for recording changes and transparency, though. Do let us know if a post in there helped, and we'll post the information here!
computer_choice = 'rock'
user_choice = input('Enter rock, paper, or python:\n')
if computer_choice == user_choice:
print('You lose :( Computer wins :D')
If you needed to use the answer, please also post the reason below, as further improvements can be made!