code doesn't run correctly
ctrl + B and search on google, and also I searched on Youtube, Google and I tried several ways. there was some solutions but it didn't work. there is no error but unfortunately, my code doesn't run
code doesn't run correctly
ctrl + B and search on google, and also I searched on Youtube, Google and I tried several ways. there was some solutions but it didn't work. there is no error but unfortunately, my code doesn't run
On
Python Setup:
python --version or python3 --version in the terminal. If Python is not installed, you can install it using your package manager.Sublime Text 3 Configuration:
Open Sublime Text 3 and go to "Tools" -> "Build System" -> "New Build System".
In the new build system file, paste the following configuration:
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "utf8",
"env": {"PYTHONIOENCODING": "utf-8"}
}
Save the file with a descriptive name, for example, "Python3.sublime-build".
Running Python Code:
Note: Make sure to save the Python file with a ".py" extension before running it.
By configuring Sublime Text 3 with the Python build system, you can easily execute Python code within the editor and view the output. This setup allows for quick testing and debugging of Python programs directly from Sublime Text.
Remember to install any necessary Python packages or dependencies required by your code using tools like pip or virtual environments, as Sublime Text does not handle package management directly.
Download the portable sublime3, go to: Tools | Build Systems | Python.
With "Build" you can run your code.
Crtl + B shows your python version, what is in your system environment variable defined:
I would anyway suggest Thonny