Sublime Forum

Troubleshooting: can build messages but not arithmetic

#1

I am brand new to Python and just installed Sublime Text. I am able to use commands to print messages, but if I type something like “2+3” and try to build, the system returns “Finished in 0.1 seconds” but without a return value.

What am I doing wrong? Thank you!

0 Likes

#2

2+3 works in a repl - running python on the command line - because it prints the result of each line automatically. This is not the case for scripts. You’ll need to print(2+3) in a script.

0 Likes

#3

Duh. Thank you!

0 Likes