#đź”’ Guys my print is not working help

12 messages · Page 1 of 1 (latest)

vivid iris
#

So basically I was on python today and got bored so I decided to do some print commands but it didn’t work and kept on saying error, any help? ( I’m on python IDLE and here is what I typed :
greeting = "Hi ppl I am bored”
print(greeting) )

stoic shadowBOT
#

@vivid iris

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.

dire junco
#

Show the error?

vivid iris
#

I’m not on my computer right now, sorry.

#

I might just ask chat GPT so this is basically nothing

dire junco
#
>>> greeting = "Hi ppl I am bored”
  File "<stdin>", line 1
    greeting = "Hi ppl I am bored”
               ^
SyntaxError: unterminated string literal (detected at line 1)
>>> print(greeting) )
  File "<stdin>", line 1
    print(greeting) )
                    ^
SyntaxError: unmatched ')'
>>>
#

Your closing quote on the first line need to be a ", not whatever you've got.

#

Your print line has 2 closing brackets.

#

@vivid iris ^^

vivid iris
#

Thank you

stoic shadowBOT
#
Python help channel closed for inactivity

This help channel has been closed. 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.