A little help please?
Hi so I'm kind of new to replit and I'm trying to create a rock, paper, scissor game. It keeps saying I'm doing something wrong but I don't know what it is. Could I please get some help figuring out what I'm doing wrong? If you volunteer to help I'll send you the link to the code. Thanks.
Alright, your indentation was slightly wrong, I have fixed it for you.
The correct syntax goes like this:
if something: if nested: # nested ifs else: # optional else else: # this one is for the outside if
Your indenting isn't right. Delete all the indents and re-indent them. Right now the code looks like this:
if rps == computer: print ("It is a tie! :p") if rps== ("rock"):
It should look like this:
if rps == computer: print ("It is a tie! :p") if rps == ("rock"):
- First, what is the language of your program? Python?
- Second, you can embed the Repl into your post instead of sending an individual link, when you create a new post, there will be a list of Repl for you to choose from on the top of the create post box. The Repl that you choose will be embedded at the end of your post.
Now give me link.