New to Python & Sublime
Problem: I type 'print ("Hello world")
How do I get it to show me the output (Hello world), is it in a separate window? or...
I understand I can use the Python Console built in, but that's a command line, what about when I get to use a ton of code, how do I get the output?
Super+Shift+B is the right answer. It is not a duplicate of the other question, but an extension of it.
In order for taking input and receiving output from a code, we need to manually set up our input and output files. Step 1: From the top menu, select View->Layout->Columns :3 or press Shift+Alt+3. Step 2: Now select View->Groups->Max columns: 2. Step 3: Now you can view three files simultaneously in sublime text.
If you're using Sublime 3, the same menu item exists but is also bound to a key as well (check the menu item to see what it is for your platform), and you can click on the panel chooser icon in the bottom left of the window to open a menu that displays all panels and choose the output panel from there.
Click on tools > build systems > select Python, then Build with using ctr+shif B and select python, and it ll work. Second time you can use the build command, ctr + B since python is now set as default
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With