#๐Ÿ”’ Rock Paper Scissors

38 messages ยท Page 1 of 1 (latest)

gentle grove
#
https://paste.pythondiscord.com/6X7Q
barren oliveBOT
#

@gentle grove

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.

gentle grove
#

Theres a problem with the print statement at line 8

#

Please help

unborn wave
unborn wave
gentle grove
#

the goal was to do this without f strings

#

and the comma did the job for me xD

unborn wave
#

Well you could use .format

#

if you don't want to use that

gentle grove
#

yeah

#

its fixed

#

print("% wins,% losses,% ties",(wins,losses,ties))

#

the comma before the parens did it

unborn wave
#

oh wow that looks very

#

cursed

#

print("Wins: {}, Losses: {}, Ties: {}".format(wins, losses, ties))

#

you can do this as well if you want

round lily
#

It used to be done in python 2

gentle grove
round lily
#

You can just use the + operator

#

Or f strings / format

round lily
gentle grove
#

what do you mean

round lily
#

!e

name = "Jiggly Balls"
print("Hi, my name is " + name + ". Nice to meet you")
barren oliveBOT
round lily
#

It's more readable than %

round lily
#

And probably faster ig

gentle grove
#

ok

round lily
gentle grove
#

ight

#

!close

barren oliveBOT
#
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.