Sublime Forum

Python 3 - output not shown

#1

Hello.
I’ve installed sublime text 4 and python 3. The only time the output is shown in when I use
the print function. Anything that does not require the print function, the output is blank.


Any help would be appreciated.

0 Likes

#2

Are you using a repl of some kind of are you just running it using the built-in build system. Running a python script won’t output anything unless you print, that’s how the language works.

0 Likes

#3

I’m new to programming. Can you please explain how I can do that?

0 Likes

#4

The first line in your program is an example of a print(); if you want to print the value on the second line, it needs to similarly contain a print().

0 Likes

#5

Just realised my stupid mistake. Thank you.

0 Likes