0
I have some question related to python.
I am new to programming and learning python and i dont know where do you run python codes, i have python installed but cant i save files like in html? And the "input" also dont work in python like it does in online python compilers like sololearn itself and then how do the developers use python to make programmes or sites?
2 ответов
+ 3
Usually by using IDEs. A local enviornment on your pc or phone that runs python code.
Write your code in a regular file.
Save with a .py extension.
Open in your IDE and run.
* If you downloaded python on your computer, it comes with
IDLE, the python made IDE.
*search "python ide" in your phone store if on mobile.
+ 1
There are some IDEs to run Python,you can use the following:
- pycharm (community version)
- vscode
- Python IDE downloaded with the interpreter.
I recommend you use Pycharm if you want to run a file with a button.
You can run a Python file without a IDE also. I will teach you how:
1) Create a file with .py extension, for example 'file.py'
```file.py
print("Hello world")
```
2) Open your bash or command program, and type 'python file.py' or 'python3 file.py':
~$ python file.py