Sublime Forum

Need help in executing program!

#1

Hi
I created this simple if-else program I saw on Python documentation. My problem is that when I build it, it only gives me ouput of the first line and I can only enter value. The rest of the if-else steps don’t run and I can’t get any output.
Any help is appreciated!
Below is the screenshot of the code that I wrote:

And this is where I saw the code:
https://docs.python.org/3/tutorial/controlflow.html

0 Likes

#2

Sublime doesn’t support using a build system to run an interactive program. Your code isn’t the problem, it’s that you can’t interact with the running program once you ask for input. In the background, your program is waiting for you to enter some text so that it can continue, but what you type into the build output panel isn’t being sent to it.

To run a program like this you need something like SublimeREPL or Terminus, which both support this sort of thing.

0 Likes

#3

Thanks for helping me out!!
Also can you please tell me how to install either of those two.

0 Likes

#4

Learn more about…Python If statement

0 Likes