#๐Ÿ”’ Rock paper scissors

40 messages ยท Page 1 of 1 (latest)

feral topaz
#

So here's my problem and I donno what to do with it..I'm a beginner

delicate haloBOT
#

@feral topaz

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

feral topaz
#

...

zealous junco
#

You may have wanted parentheses and not brackets.

feral topaz
#

} this one?

zealous junco
#

Curly braces. {}

#

Square brackets. []

#

Parentheses. ()

feral topaz
#

) ] }

#

So the last one

zealous junco
#

First.

feral topaz
#

Ok

#

On 17th line?

zealous junco
#

You're trying to call random.randint

neon parcel
#

line 15

zealous junco
#

Calls generally mean you're using parentheses.

feral topaz
#

Ok

#

Thanks

#

It worked thx

zealous junco
#

!e ```py
import random

choices = 'Apples', 'Pears', 'Bananas'
choice = random.choice(choices)
print(choice)```

delicate haloBOT
zealous junco
#

Some food for thought.

feral topaz
#

Wait lemme test this real quick

#

!e if Uw > Cw:
print("You won!")
elif Cw > Uw:
print("You lost")
elif Cw == Uw:
print("It's a tie!")

delicate haloBOT
feral topaz
#

Oh

#

Yea I didn't copy whole code

#

!e command = ""
started = False
while True:
command = input("> ").lower()
if command == "start":
if started :
print("Car already started!")

   else:
         started = True
         print("Car started")
elif command == "stop":
    if started :
        started = False
        print("Car stopped.")
    else:
        print("Car already stopped!")
elif command == "quit" :
    print("Game ended")
    break
elif command == "help" :
    print('''

start - start car
stop - stop car
quit - quit game''')

delicate haloBOT
#

Hey @feral topaz!

It looks like you are trying to paste code into this channel.

You seem to be using the wrong symbols to indicate where the code block should start. The correct symbols would be ```, not '''.

Here is an example of how it should look:
```
Hello, world!
```

This will result in the following:

Hello, world!```
You can **edit your original message** to correct your code block.
delicate haloBOT
feral topaz
#

??

#

!e print("""
this discord server is great""")

delicate haloBOT
feral topaz
#

Yay

#

!e print("""
This is the best discord server""")

delicate haloBOT
zealous junco
#

@feral topaz
!e ```py
print('Hello, world.')
print('Goodbye.')

delicate haloBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.