#๐ how is this error ?
48 messages ยท Page 1 of 1 (latest)
@white root
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.
!code
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.
basically it's saying I got it wrong it's close but not correct
Yes. Without knowing what exactly it should be, we can't help much.
the variable name is assigned to Amir
ohhhh
ok
What exactly is the assignment?
I wouldn't be surprised if you're expected to use input.
I am suppose to produce the output of name = Amir and greeting = "Hello, " + name + " ! " the right way
ok I will try that
There is no problem with the code in general. Again, what exactly is the assignment?
In the picture I dont See nothing wrong
In Amir it doesnt have a space so try
Hello, Amir!
I am suppose to put the out put for the code above
mb if I am not explain it properly
Oh, you're supposed to guess the output. Look at the end of their string.
yep
You're missing a character
I put the ! and it still said it was wrong
Cause You put space after Amir
but I thought the plus sign can be used as a comma if it's spaced?
otherwise it will just be together right?
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.
so the output should be Hello Amir !
No space before the !.
Like the other guy said.
+ does not automatically add spaces.
Show what you tried.
Like another screenshot.
And make sure you didn't insert a trailing space.
it's fix now thank you
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.