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?

17th Apr 2018, 2:44 PM
Adilet Kambarov
Adilet Kambarov - avatar
2 odpowiedzi
+ 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.
17th Apr 2018, 3:02 PM
Kawalpreet Juneja
Kawalpreet Juneja - avatar
+ 1
Pycharm will do it.
23rd Apr 2018, 7:25 AM
Johannes
Johannes - avatar