0
Where to write my calculator code?
In python IDLE i can practice as it outputs my code right away, but i want to write all my code (wanna create a calculator) and access it as complete program... where do i write this and how to make it work?
2 Réponses
+ 1
You'll need NotePad++ (for Windows) or Vim (for Linux) or similar programs.
If you've Linux system, open terminal, type in vim first.py
and enter your Python code. Use Vim commands (:wq to write and exit, learn from internet) to insert your code and return to terminal)
To execute it, type in:
python first.py
For Windows PC, since your Python IDE is working, I suppose Python environment variables are saved.
Using Notepad++, save a new.py file and type in your Python code. To execute, open cmd and cd into the directory where new.py is saved. Now type in command python new.py or py new.py to execute your python code.
+ 1
Pycharm will do it.