I have started off with Python today and stuck with a weird problem. I am using Python 3.5.1 and Sublime text 3 and have written a basic hello world program.
print('Hello World')
Saved this file with the name python1.py and pressed Ctrl+B to execute it but the only thing that shows up on the console is [Finished in XYZs] which means that the program sucessfully executes but no output shown.
NOTE: I am using Windows 8(If that's important) and Python is installed properly and I can run my programs from CMD with no problems.
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.
Do a hard reset on your printer. To do this you just need to turn off your printer, unplug for a few minutes and then plug the printer again. If that still doesn't work, try turning the printer and your computer off, and then start it back up again. Try uninstalling and then reinstalling your printer driver.
The print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.
Solved it,
Press Ctrl+Shift+B
after which a list pops up, select python from that list and its done. From next time just pressing Ctrl+B
will work.
'Ctrl+Shift+B' Means "Build this code and then RUN it" instead of simply compile it
press Shift-Ctrl-B
and select python. That happens because the program only checks if your python program is correctly. The next time just pressing Ctrl+B
, will work
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