slothfulwave612
slothfulwave612

Reputation: 1409

Python3.6 not displaying output in Sublime-Text3

Python3.6 Code

When inputting the name Python3.6 is not displaying the required output

And here is the image of my build-system

Python3.6 Build System

Upvotes: 2

Views: 656

Answers (3)

AlanSTACK
AlanSTACK

Reputation: 6065

This happens because the text you are typing into Sublime Text is not being passed to the Python interpreter. From the program's perspective, it is still waiting for input.

I don't think it's possible to modify this behavior in Sublime Text. This limitation is part of the text editor's functionality, and hopefully it will be addressed in a future release.

Upvotes: 2

slothfulwave612
slothfulwave612

Reputation: 1409

Here I got the solution :-

  1. I installed SublimeRepl package in sublime-text3

  2. Then I edited python file in sublimerepl, for this refer:- Sublimerepl-Python

3.Then I run my python file through SublimeRepl, and it worked

Upvotes: 2

Hao
Hao

Reputation: 11

Try this.

print('Hello {0}'.format(name))

and make sure using terminal to run your .py file

Upvotes: 0

Related Questions