Sublime Forum

My first simple python program

#1

Hi All,

I have input this sample pog into ST3:

thetext = input("Enter some text ")
print (“This is what you entered:”)
print (thetext)

When I run by issuing a ctrl+B command It prints ‘Enter some text’ in the console but how can I enter some text & get it to complete the prog?

Confused - sorry I know this is a really basic question - just trying to get my head around it all.

thks in advance, John

0 Likes

#2

Build systems run in Sublime Text can not send stuff to the commands that it runs, i.e. what input() requires. You’ll need to run the command in a terminal or command prompt.

0 Likes

#3

###Try:

Console Exec and/or SublimeREPL

 



 
You can also run Batch or PowerShell scripts if you want to customize your builds a bit more.

0 Likes