0
what’s wrong with my code?
message = “Game Over” print(message)
6 Respuestas
+ 7
message = “Game Over”
^
SyntaxError: invalid character '“' (U+201C) ;
use this "" for strings not this “ “
+ 1
You need it give a space between the print and the message e.g
print (message)
+ 1
Do this " " instead or this ''.
+ 1
lunaris
some characters look very similar, but they are not interchangeable.
perhaps you copy-pasted the code from a website?
+ 1
The error you're encountering is due to the fact that you're using the wrong type of quotation marks around your string. In your code, you're using curly double quotation marks (“ ”) instead of regular double quotation marks ("" or ''). Here's the corrected code:
```python
message = "Game Over"
print(message)
```
Replace the curly quotes with regular quotes, and your code should work without errors.
0
there is no error please run it again.