1
00:00:00,910 --> 00:00:02,810
Hello and welcome to the.

2
00:00:02,840 --> 00:00:10,750
Part two of the pie charts basic configuration set up on a Windows computer will continue from where

3
00:00:10,750 --> 00:00:14,640
we left off in part one pie chime.

4
00:00:14,650 --> 00:00:24,940
As an integrated text editor that allows you to write Python code so we can to create a python file

5
00:00:25,090 --> 00:00:29,230
and just write maybe one line of code just to test it out.

6
00:00:29,290 --> 00:00:37,120
So to do that where I've got my project name that's where I want to create the python file so that it

7
00:00:37,120 --> 00:00:40,130
is contained inside that directory.

8
00:00:40,270 --> 00:00:46,930
So our right click and there's an option for new and this option for new file.

9
00:00:47,340 --> 00:00:48,550
But what's more important.

10
00:00:48,570 --> 00:00:53,850
We want a python file so we'll click on that option for python file.

11
00:00:53,850 --> 00:00:55,080
We'll give it a name.

12
00:00:55,080 --> 00:01:04,920
I'm going to call it greeting and it will automatically save that as a python file so quick.

13
00:01:04,930 --> 00:01:06,800
Okay.

14
00:01:06,910 --> 00:01:16,150
And you can see here is creating the file greeting dot P Y inside my project territory code Python course.

15
00:01:16,150 --> 00:01:18,370
So this is the editor area.

16
00:01:18,550 --> 00:01:22,730
This is where I can now write my pipe on code.

17
00:01:22,840 --> 00:01:25,590
I'm just going to write just one line of code here.

18
00:01:25,840 --> 00:01:36,360
Do print and two parent theses and I do my quotes I just say hello world

19
00:01:39,570 --> 00:01:40,950
all right.

20
00:01:41,080 --> 00:01:44,460
And that is basically my line of code.

21
00:01:44,460 --> 00:01:53,850
This is a complete statement complete valid code so to save that I do a control an S oh I can come here

22
00:01:53,940 --> 00:02:00,100
and do a file and just click save us or just click save.

23
00:02:00,510 --> 00:02:03,150
There's an option on the bottom he also does say safe.

24
00:02:03,160 --> 00:02:06,940
Also there are various ways you can save your work.

25
00:02:06,960 --> 00:02:18,580
Now this file here is a file that I can execute inside this integrated environment inside Pakistan.

26
00:02:18,720 --> 00:02:25,500
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

27
00:02:25,500 --> 00:02:28,670
button is not automatically activated.

28
00:02:28,860 --> 00:02:35,670
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

29
00:02:35,670 --> 00:02:37,920
run the file you can see the name of the father.

30
00:02:37,920 --> 00:02:46,410
I click on run and that will execute inside the this area here.

31
00:02:46,500 --> 00:02:48,560
This area here you can see the code here.

32
00:02:48,570 --> 00:02:55,260
This line of code I've written here has been updated inside this area here.

33
00:02:55,260 --> 00:03:00,270
This area is called the terminal or the console.

34
00:03:00,330 --> 00:03:00,630
OK.

35
00:03:00,630 --> 00:03:02,010
Some people call it console.

36
00:03:02,010 --> 00:03:04,440
Some people call it the terminal.

37
00:03:04,830 --> 00:03:07,020
So this is where the code outputs.

38
00:03:07,170 --> 00:03:10,560
Another thing to take note is this line here.

39
00:03:10,560 --> 00:03:14,040
It tells you the location of the file.

40
00:03:14,550 --> 00:03:22,740
So if for example I want to run this file outside of this integrated environment I can just browse to

41
00:03:22,740 --> 00:03:30,840
the location of this file and then just run it directly in my command prompt or my terminal outside

42
00:03:30,990 --> 00:03:35,270
of this pie charm integrated environment.

43
00:03:35,280 --> 00:03:41,910
Another thing I want you to note is I notice that this play button is now active.

44
00:03:41,910 --> 00:03:50,560
So if I want to run this file on future occasions I don't need to come here right click.

45
00:03:50,560 --> 00:03:56,910
I can just click on the play button because it's now selected here in the list if I have all the files

46
00:03:56,910 --> 00:03:57,810
I create.

47
00:03:57,900 --> 00:03:59,940
I will also have them listed.

48
00:03:59,940 --> 00:04:04,860
I can go there to make sure they are there and then click on the play button.

49
00:04:04,890 --> 00:04:13,650
Also integrated inside the PI charm we've got the python console python console is different from the

50
00:04:13,650 --> 00:04:16,530
terminal is the interactive shell.

51
00:04:16,530 --> 00:04:19,270
So if I click on it you'll see this symbol here.

52
00:04:19,500 --> 00:04:25,870
You can see is the interactive shell that allows you to interact with Python.

53
00:04:25,950 --> 00:04:35,430
So if the python console is the python shell where the terminal is actually where the code is output

54
00:04:35,430 --> 00:04:43,230
it the different within the python console and the terminals that with the pilot on console you interact.

55
00:04:43,230 --> 00:04:46,370
You type in the line of code you get a response.

56
00:04:46,410 --> 00:04:53,760
And so on whereas when you are working with a terminal the terminal will just output the line of code.

57
00:04:53,760 --> 00:05:02,100
For example here if I run this code again all it does it just gives me the output for the line of code.

58
00:05:02,130 --> 00:05:11,940
So this a key difference between the terminal and the python console let's say I want to run my python

59
00:05:11,940 --> 00:05:16,270
file outside of my PI environment.

60
00:05:16,350 --> 00:05:22,350
I can just go to the location of the file which is indicated here in my terminal.

61
00:05:22,710 --> 00:05:25,070
So I've just got it here.

62
00:05:25,710 --> 00:05:27,530
So it's on my try.

63
00:05:27,540 --> 00:05:28,060
Does it.

64
00:05:28,070 --> 00:05:36,480
Here's got a folder called pie charm projects and inside that I've got the project code Python course

65
00:05:36,510 --> 00:05:39,900
which is set up inside that Python course.

66
00:05:39,970 --> 00:05:49,410
I have got my file which is concrete and so if I want to execute or run this file outside my PI charm

67
00:05:49,530 --> 00:05:50,970
I can do that.

68
00:05:51,030 --> 00:05:54,280
I would just navigate to this location.

69
00:05:54,290 --> 00:05:56,180
It is it here.

70
00:05:56,220 --> 00:06:00,560
I have navigated to the location it's in mind.

71
00:06:00,560 --> 00:06:06,810
This directory here you can see I've changed directory to PI champ project which is a directory here

72
00:06:07,620 --> 00:06:16,110
and then I have also change pi charm project is where your projects are stored in PI charm.

73
00:06:16,440 --> 00:06:22,350
So you look at that directory and inside that directory you can see I've changed territory to this territory

74
00:06:22,350 --> 00:06:31,000
called Python course and it's inside here that my file greeting the P Well E.

75
00:06:31,040 --> 00:06:40,270
So if I want to run that file inside my command prompt which is outside the PI IDC I just come here

76
00:06:40,270 --> 00:06:50,380
and typing the name of the file which is greeting dot P Y and press enter and that should execute.

77
00:06:50,380 --> 00:06:59,020
You can see says he's executed the code here and that's the same thing he has done when you run it inside

78
00:06:59,170 --> 00:07:00,660
the editor.

79
00:07:01,110 --> 00:07:12,070
So if I click on play here he does the same thing here that I'm able to run inside my command prompt

80
00:07:12,460 --> 00:07:20,980
which is outside the PI charm environmental is very important to know the location of the file in case

81
00:07:21,010 --> 00:07:28,650
you want to run the file outside the PI charm integrated environment.

82
00:07:28,720 --> 00:07:36,350
So this concludes the two part video series on basic pi charm.

83
00:07:36,350 --> 00:07:40,320
Set up configuration on a Windows based computer.

84
00:07:40,390 --> 00:07:45,970
Note this is just the basic configuration settings cos pi charm is very powerful.

85
00:07:46,010 --> 00:07:48,340
The other stuff you can set on inside it.

86
00:07:48,370 --> 00:07:51,000
But to just catch you up and running.

87
00:07:51,130 --> 00:07:59,170
We've done the very basic feel free to go through the help menu in type pi charm and read true more

88
00:07:59,170 --> 00:08:02,190
about other things you can do with it.

89
00:08:02,200 --> 00:08:03,260
Thanks for watching.

90
00:08:03,360 --> 00:08:04,150
And bye for now.
