Setup sublime to use python3
Open sublime editor.
Tools -> Build System -> New Build System…
It opens a new configuration file for you.
Update the configuration file with below content.
{
"cmd": ["python3", "-u", "$file"],
}
Save the file as Python3.sublime-build in the default directory that Sublime Text opens when you choose Save.
Running hello world program
Create new file hello_world.py with following content.
hello_world.py
print("Hello world!!!!")
In sublime editor, tools -> Build.
It opens all the possible options to run the python file.
Select Python3.
You will observe a console window at bottom of the editor.
Previous Next Home
No comments:
Post a Comment