Sublime Forum

Beginner syntax errors while teaching myself Python3

#1

Hello everyone,

I recently bought “Python Crash Course: 2nd edition” and am immediately stuck on the 2nd chapter.
The book is trying to teach me variables with the whole “Hello World” thing which is a really simple concept but I keep getting a syntax error when I use variables instead of just printing the text.

I’ve followed everything found in this thread: New user - [WinError 2] The system cannot find the file specified
which includes making new build systems, app execution aliases because of the Microsoft store, and editing my environmental variables to make sure Sublime knows where Python 3 is installed.

Do you guys have any idea what’s going on?
Here are examples of the code and errors I keep running into.

Thank you so much.

0 Likes

#2

Also here’s an image of my build system.

0 Likes

#3

Well, you don’t wrap

message = "Hello Python World"
print(message)

within curly braces {}. You need to just correct it to the above snippet.

0 Likes

#4

Indeed your build looks fine (though the advice on creating one may or may not actually be needed) but your code is not correct; the braces are indicating to the Python compiler that you’re trying to create a dictionary object, and that’s not how you do that.

0 Likes

#5

Wow. I knew it was going to be something dumb like this.
Thanks, guys!
Also thanks for making the video on this exact topic Odat.

0 Likes