#๐Ÿ”’ how is this error ?

48 messages ยท Page 1 of 1 (latest)

vague vigilBOT
#

@white root

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.

forest bone
#

!code

vague vigilBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

white root
#

mb I'm sorry I forgot to explain myself

forest bone
#

That's not a Python error. That's just a grader telling you that your answer is wrong. We'd need to know what the assignment was.

white root
#

basically it's saying I got it wrong it's close but not correct

forest bone
#

Yes. Without knowing what exactly it should be, we can't help much.

white root
#

the variable name is assigned to Amir

forest bone
#

What exactly is the assignment?

#

I wouldn't be surprised if you're expected to use input.

white root
#

I am suppose to produce the output of name = Amir and greeting = "Hello, " + name + " ! " the right way

white root
forest bone
sly zenith
white root
#

give it a sec

forest bone
#

Again, what is the assignment exactly?

#

You still haven't said.

sly zenith
# white root

In Amir it doesnt have a space so try
Hello, Amir!

white root
#

mb if I am not explain it properly

forest bone
#

Oh, you're supposed to guess the output. Look at the end of their string.

white root
#

yep

forest bone
#

You're missing a character

white root
#

I put the ! and it still said it was wrong

sly zenith
white root
#

but I thought the plus sign can be used as a comma if it's spaced?

#

otherwise it will just be together right?

forest bone
#

No. You're thinking of print specific behavior. A comma wouldn't work here at all.

#

A comma is used to separate function arguments, and print automatically inserts spaces between arguments by default.

white root
#

so the output should be Hello Amir !

forest bone
#

No space before the !.

#

Like the other guy said.

#

+ does not automatically add spaces.

white root
#

hm ok I will try it

#

still says I'm wrong

#

shammit

forest bone
#

Show what you tried.

#

Like another screenshot.

#

And make sure you didn't insert a trailing space.

sly zenith
#

Copy and paste that

white root
#

it's fix now thank you

vague vigilBOT
#
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.