Hello and welcome to the.
Part two of the pie charts basic configuration set up on a Windows computer will continue from where
we left off in part one pie chime.
As an integrated text editor that allows you to write Python code so we can to create a python file
and just write maybe one line of code just to test it out.
So to do that where I've got my project name that's where I want to create the python file so that it
is contained inside that directory.
So our right click and there's an option for new and this option for new file.
But what's more important.
We want a python file so we'll click on that option for python file.
We'll give it a name.
I'm going to call it greeting and it will automatically save that as a python file so quick.
Okay.
And you can see here is creating the file greeting dot P Y inside my project territory code Python course.
So this is the editor area.
This is where I can now write my pipe on code.
I'm just going to write just one line of code here.
Do print and two parent theses and I do my quotes I just say hello world
all right.
And that is basically my line of code.
This is a complete statement complete valid code so to save that I do a control an S oh I can come here
and do a file and just click save us or just click save.
There's an option on the bottom he also does say safe.
Also there are various ways you can save your work.
Now this file here is a file that I can execute inside this integrated environment inside Pakistan.
I don't need to leave pi charm to run this file so to run this file there is a play button on the play
button is not automatically activated.
So to do that here on the left I've got the name of the file our right click and there's an option to
run the file you can see the name of the father.
I click on run and that will execute inside the this area here.
This area here you can see the code here.
This line of code I've written here has been updated inside this area here.
This area is called the terminal or the console.
OK.
Some people call it console.
Some people call it the terminal.
So this is where the code outputs.
Another thing to take note is this line here.
It tells you the location of the file.
So if for example I want to run this file outside of this integrated environment I can just browse to
the location of this file and then just run it directly in my command prompt or my terminal outside
of this pie charm integrated environment.
Another thing I want you to note is I notice that this play button is now active.
So if I want to run this file on future occasions I don't need to come here right click.
I can just click on the play button because it's now selected here in the list if I have all the files
I create.
I will also have them listed.
I can go there to make sure they are there and then click on the play button.
Also integrated inside the PI charm we've got the python console python console is different from the
terminal is the interactive shell.
So if I click on it you'll see this symbol here.
You can see is the interactive shell that allows you to interact with Python.
So if the python console is the python shell where the terminal is actually where the code is output
it the different within the python console and the terminals that with the pilot on console you interact.
You type in the line of code you get a response.
And so on whereas when you are working with a terminal the terminal will just output the line of code.
For example here if I run this code again all it does it just gives me the output for the line of code.
So this a key difference between the terminal and the python console let's say I want to run my python
file outside of my PI environment.
I can just go to the location of the file which is indicated here in my terminal.
So I've just got it here.
So it's on my try.
Does it.
Here's got a folder called pie charm projects and inside that I've got the project code Python course
which is set up inside that Python course.
I have got my file which is concrete and so if I want to execute or run this file outside my PI charm
I can do that.
I would just navigate to this location.
It is it here.
I have navigated to the location it's in mind.
This directory here you can see I've changed directory to PI champ project which is a directory here
and then I have also change pi charm project is where your projects are stored in PI charm.
So you look at that directory and inside that directory you can see I've changed territory to this territory
called Python course and it's inside here that my file greeting the P Well E.
So if I want to run that file inside my command prompt which is outside the PI IDC I just come here
and typing the name of the file which is greeting dot P Y and press enter and that should execute.
You can see says he's executed the code here and that's the same thing he has done when you run it inside
the editor.
So if I click on play here he does the same thing here that I'm able to run inside my command prompt
which is outside the PI charm environmental is very important to know the location of the file in case
you want to run the file outside the PI charm integrated environment.
So this concludes the two part video series on basic pi charm.
Set up configuration on a Windows based computer.
Note this is just the basic configuration settings cos pi charm is very powerful.
The other stuff you can set on inside it.
But to just catch you up and running.
We've done the very basic feel free to go through the help menu in type pi charm and read true more
about other things you can do with it.
Thanks for watching.
And bye for now.