If you are a PC user, you should instead use the command py. The terminal (also known as a console) will then print output and accept user text input, depending on how you write your program.Īs a side note, in many handouts we might use the Mac convention of running programs by using the command python3.
![how to use pycharm how to use pycharm](https://linuxhint.com/wp-content/uploads/2020/02/1-38.png)
To run any program, all you have to do is type the following command into the Terminal and hit "Enter": To run a program in P圜harm, click the "Terminal" option at the bottom of the screen.
#HOW TO USE PYCHARM HOW TO#
It's time to code! Run programs How to run Python programs in Pycharmįigure 2: The P圜harm terminal used to run Python programs. For Karel programs, you do not need to inspect or edit any files in the karel or worlds folders.ĭouble-click on a program (say, newspaper_karel.py) and it will open up a text editor view in the main window of P圜harm. The Project toolbar on the left (Figure 1, right) shows the current project we are working on (Day1PM) as well as all of its contents: folders, Python files, etc. After opening a project, you should see the default P圜harm landing view (right). You should see a view shown in Figure 1 below, right-hand side.įigure 1: The first window that opens when you start P圜harm (left) should have an Open option for you to select a project. If you already have another project open, P圜harm will prompt you to either open the project in your existing window or in a new window. Open the folder, rather than a particular file you want to edit. Navigate to the Day1PM folder and open it. If you already have P圜harm open with a different project, go to the top of the screen and click "File"->"Open".Select the project you want to work on, or click "Open". Open P圜harm (see Figure 1 below, left-hand side).Move that folder to some place on your computer where you can keep track of it when you want to load the project.Make sure to use the innermost Day1PM folder. Note If you are on a Windows computer, you may have a second Day1PM folder nested outside the outer Day1PM folder.
![how to use pycharm how to use pycharm](https://www.tutorials24x7.com/uploads/2019-12-27/files/18-tutorials24x7-python-pycharm-output.png)
#HOW TO USE PYCHARM ZIP FILE#
#HOW TO USE PYCHARM ARCHIVE#