Sublime Forum

Need help with Syntax error

#1

Hi Sublime team! I am new to programming and starting to learn variables and print them in the sublime app. I created this code and got this error message. I have no idea what is wrong as I am using the “Python Crash Course” book written by Eric Matthes and copied it word for word. Note that I do have the latest version of Python and was able to print “Hello world” just fine by not using a variable. Thank you in advance!

Code:
{
message = “Hello Python World”
print(message)

}

Error message:
File “C:Desktop\python_work\hello_world.py”, line 2
message = “Hello Python World”
^
SyntaxError: invalid syntax
[Finished in 0.8s]

0 Likes

#2

Don’t use the curly braces in your code.

0 Likes