I am really new on python and try to find a good IDE My friend suggest me sublime text3.
But when I try to write some code, it come up a question:
I try to write a code that will read the line from user input.
import sys
a = sys.stdin.readline()
print (a)
At beginning I expect some cmd jump out and let me type something to let my program read. But there's nothing happen....
Can someone tell me that can SublimeText read user input? or did I do something wrong....
(I find out that there is a post discuss about 'Using sys.stdin.readline() to read multiple lines from cmd in Python'
Using sys.stdin.readline() to read multiple lines from cmd in Python
but I'm not sure if this is the case for sublime.....)
Hi everyone again. Sorry for the miss leading title and thank you for answering my question again!
DYZ point out the question I would want to ask, and actually I also try package "SublimeREPL". However, it's not working :(( (the figure show it)
I also try my code on terminal and it works... Can some one tell me where did I did wrong? or maybe I shouldn't do this on Sublime..
thank you guys again and sorry for confusing!