1
00:00:00,006 --> 00:00:03,060
well hello internet<font color="#CCCCCC"> and welcome my learn</font>

2
00:00:01,092 --> 00:00:05,106
to program tutorial in this<font color="#CCCCCC"> tutorial</font>

3
00:00:03,006 --> 00:00:07,041
series<font color="#E5E5E5"> is going to be multi-part series</font>

4
00:00:06,006 --> 00:00:10,023
I'm<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to teach you</font><font color="#E5E5E5"> how to</font><font color="#CCCCCC"> program</font>

5
00:00:07,095 --> 00:00:11,103
through<font color="#CCCCCC"> problem-solving</font><font color="#E5E5E5"> I'm basically</font>

6
00:00:10,023 --> 00:00:14,025
going<font color="#E5E5E5"> to show you how to do a couple</font>

7
00:00:12,003 --> 00:00:15,057
<font color="#CCCCCC">different things using</font><font color="#E5E5E5"> Python that's</font><font color="#CCCCCC"> a</font>

8
00:00:14,025 --> 00:00:17,040
language<font color="#CCCCCC"> I'm</font><font color="#E5E5E5"> going to use and then I'm</font>

9
00:00:15,057 --> 00:00:18,072
going to<font color="#E5E5E5"> ask you a question</font><font color="#CCCCCC"> ask you to</font>

10
00:00:17,004 --> 00:00:20,303
solve<font color="#E5E5E5"> it and</font><font color="#CCCCCC"> then I'm going to</font><font color="#E5E5E5"> show you</font>

11
00:00:18,072 --> 00:00:21,105
<font color="#E5E5E5">how I solved it</font><font color="#CCCCCC"> a lot of people get</font>

12
00:00:20,699 --> 00:00:24,210
<font color="#E5E5E5">confused about programming but</font>

13
00:00:22,005 --> 00:00:26,100
programming<font color="#E5E5E5"> basically involves listing</font>

14
00:00:24,021 --> 00:00:29,022
all the<font color="#E5E5E5"> things that must</font><font color="#CCCCCC"> happen to</font><font color="#E5E5E5"> solve</font>

15
00:00:27,000 --> 00:00:31,005
a<font color="#E5E5E5"> problem and whenever you're writing a</font>

16
00:00:29,022 --> 00:00:33,611
program you have<font color="#CCCCCC"> to first determine step</font>

17
00:00:31,005 --> 00:00:35,064
by step what needs to<font color="#E5E5E5"> happen</font><font color="#CCCCCC"> and</font><font color="#E5E5E5"> then</font>

18
00:00:33,809 --> 00:00:37,980
you<font color="#E5E5E5"> need to convert those steps</font><font color="#CCCCCC"> in to</font>

19
00:00:36,009 --> 00:00:40,011
the language<font color="#E5E5E5"> being Python in this</font>

20
00:00:37,098 --> 00:00:41,166
situation<font color="#E5E5E5"> based off</font><font color="#CCCCCC"> of many requests</font>

21
00:00:40,029 --> 00:00:45,036
I've received<font color="#E5E5E5"> I'm going to use</font><font color="#CCCCCC"> PyCharm</font>

22
00:00:42,066 --> 00:00:46,164
in this tutorial<font color="#CCCCCC"> series</font><font color="#E5E5E5"> and at the end</font>

23
00:00:45,036 --> 00:00:48,114
of this<font color="#CCCCCC"> tutorial series</font><font color="#E5E5E5"> at the end</font><font color="#CCCCCC"> of</font>

24
00:00:47,064 --> 00:00:51,503
this video<font color="#E5E5E5"> I show you</font><font color="#CCCCCC"> how</font><font color="#E5E5E5"> to install</font>

25
00:00:49,014 --> 00:00:54,030
<font color="#CCCCCC">PyCharm and in the description</font>

26
00:00:52,079 --> 00:00:56,430
underneath the video you can<font color="#CCCCCC"> just click</font>

27
00:00:54,003 --> 00:00:58,262
<font color="#CCCCCC">on that</font><font color="#E5E5E5"> and</font><font color="#CCCCCC"> jump</font><font color="#E5E5E5"> directly to that part</font>

28
00:00:56,043 --> 00:01:00,062
<font color="#CCCCCC">and watch how to install</font><font color="#E5E5E5"> it if you'd</font>

29
00:00:58,559 --> 00:01:02,564
<font color="#E5E5E5">like to use</font><font color="#CCCCCC"> Python or you could use</font>

30
00:01:00,449 --> 00:01:04,470
whatever different platform you'd like

31
00:01:02,609 --> 00:01:07,170
to use the program Python<font color="#CCCCCC"> we're</font>

32
00:01:04,047 --> 00:01:08,079
specifically<font color="#E5E5E5"> going to use</font><font color="#CCCCCC"> Python</font><font color="#E5E5E5"> 3</font><font color="#CCCCCC"> in</font>

33
00:01:07,017 --> 00:01:10,053
this<font color="#E5E5E5"> situation and also</font><font color="#CCCCCC"> in the</font>

34
00:01:08,079 --> 00:01:11,147
<font color="#CCCCCC">description there is</font><font color="#E5E5E5"> both a cheat sheet</font>

35
00:01:10,053 --> 00:01:15,002
<font color="#CCCCCC">as well as a transcript</font><font color="#E5E5E5"> of the entire</font>

36
00:01:12,047 --> 00:01:17,079
<font color="#CCCCCC">tutorial and enough talking let's get</font>

37
00:01:15,479 --> 00:01:19,532
<font color="#E5E5E5">into it</font><font color="#CCCCCC"> now this</font><font color="#E5E5E5"> whole tutorial series</font>

38
00:01:17,079 --> 00:01:20,588
<font color="#E5E5E5">is going to</font><font color="#CCCCCC"> be</font><font color="#E5E5E5"> basically code writing it</font>

39
00:01:20,009 --> 00:01:24,090
isn't going<font color="#E5E5E5"> to be a whole</font><font color="#CCCCCC"> bunch of</font>

40
00:01:21,299 --> 00:01:25,650
frames<font color="#E5E5E5"> that</font><font color="#CCCCCC"> you just look at and read so</font>

41
00:01:24,009 --> 00:01:27,027
this is basically going to be<font color="#E5E5E5"> the</font><font color="#CCCCCC"> only</font>

42
00:01:25,065 --> 00:01:28,074
one we're<font color="#E5E5E5"> going to look at and basically</font>

43
00:01:27,027 --> 00:01:31,089
what we're going<font color="#CCCCCC"> to talk about</font><font color="#E5E5E5"> here is</font>

44
00:01:28,074 --> 00:01:33,593
what every program language<font color="#E5E5E5"> is going to</font>

45
00:01:31,089 --> 00:01:35,154
allow you<font color="#CCCCCC"> to do each</font><font color="#E5E5E5"> language is going</font>

46
00:01:34,259 --> 00:01:38,820
to have the<font color="#CCCCCC"> ability to accept input</font><font color="#E5E5E5"> and</font>

47
00:01:36,054 --> 00:01:40,143
store it in many ways<font color="#CCCCCC"> also the</font><font color="#E5E5E5"> ability</font>

48
00:01:38,082 --> 00:01:43,125
to<font color="#CCCCCC"> output information to the screen or</font>

49
00:01:41,043 --> 00:01:45,135
files or other different places<font color="#E5E5E5"> also the</font>

50
00:01:44,025 --> 00:01:48,027
ability to conditionally do one<font color="#E5E5E5"> thing or</font>

51
00:01:46,035 --> 00:01:50,070
another<font color="#E5E5E5"> thing based off of different</font>

52
00:01:48,045 --> 00:01:53,052
<font color="#CCCCCC">conditions they also</font><font color="#E5E5E5"> allow you to do</font>

53
00:01:50,007 --> 00:01:54,011
something multiple different<font color="#E5E5E5"> times they</font>

54
00:01:53,052 --> 00:01:57,057
also allow you<font color="#E5E5E5"> to make mathematical</font>

55
00:01:55,001 --> 00:02:00,036
<font color="#E5E5E5">calculations and they provide</font><font color="#CCCCCC"> the</font>

56
00:01:58,002 --> 00:02:02,201
ability<font color="#CCCCCC"> to change data and if it's an</font>

57
00:02:00,045 --> 00:02:04,004
object-oriented programming language

58
00:02:02,219 --> 00:02:07,710
like<font color="#E5E5E5"> Python it's going to allow you to</font>

59
00:02:04,409 --> 00:02:10,410
model<font color="#CCCCCC"> real world objects using code</font><font color="#E5E5E5"> and</font>

60
00:02:07,071 --> 00:02:11,077
that is a short list<font color="#E5E5E5"> but for</font><font color="#CCCCCC"> the most</font>

61
00:02:10,041 --> 00:02:13,950
<font color="#CCCCCC">part that covers what every program</font>

62
00:02:12,031 --> 00:02:16,045
language is going<font color="#E5E5E5"> to allow you to do so</font>

63
00:02:14,319 --> 00:02:17,680
it's<font color="#E5E5E5"> not</font><font color="#CCCCCC"> that complicated and now we're</font>

64
00:02:16,045 --> 00:02:19,081
going to jump<font color="#CCCCCC"> over</font><font color="#E5E5E5"> and we're going to</font>

65
00:02:17,068 --> 00:02:21,109
start<font color="#E5E5E5"> writing some code okay so to start</font>

66
00:02:19,081 --> 00:02:22,980
<font color="#CCCCCC">a new project inside</font><font color="#E5E5E5"> of</font><font color="#CCCCCC"> pycharm you're</font>

67
00:02:22,009 --> 00:02:25,045
just going<font color="#E5E5E5"> to come</font><font color="#CCCCCC"> down here</font><font color="#E5E5E5"> and this is</font>

68
00:02:23,709 --> 00:02:27,370
<font color="#CCCCCC">on Macintosh</font><font color="#E5E5E5"> I'll show you</font><font color="#CCCCCC"> Windows and</font>

69
00:02:25,045 --> 00:02:28,134
second click on create<font color="#CCCCCC"> new project and</font>

70
00:02:27,037 --> 00:02:31,069
then<font color="#CCCCCC"> we can go and save this</font><font color="#E5E5E5"> wherever</font>

71
00:02:29,034 --> 00:02:34,078
location untitled we're going to click

72
00:02:31,069 --> 00:02:37,105
<font color="#E5E5E5">on this and I'm going</font><font color="#CCCCCC"> to find a location</font>

73
00:02:34,078 --> 00:02:38,167
<font color="#CCCCCC">this</font><font color="#E5E5E5"> is perfectly fine</font><font color="#CCCCCC"> click on</font><font color="#E5E5E5"> OK then</font>

74
00:02:38,005 --> 00:02:41,080
you want to make<font color="#CCCCCC"> sure</font><font color="#E5E5E5"> that you pick the</font>

75
00:02:39,067 --> 00:02:42,666
<font color="#CCCCCC">version three point</font><font color="#E5E5E5"> five point one the</font>

76
00:02:41,008 --> 00:02:44,089
new version of<font color="#E5E5E5"> Python you installed</font>

77
00:02:43,269 --> 00:02:47,313
<font color="#E5E5E5">click on that click on create it's going</font>

78
00:02:45,061 --> 00:02:48,154
to say so I'd empty data might give you

79
00:02:47,709 --> 00:02:51,310
a different<font color="#E5E5E5"> piece of information and</font>

80
00:02:49,054 --> 00:02:53,083
<font color="#CCCCCC">then to create a new file you're going</font>

81
00:02:51,031 --> 00:02:56,032
<font color="#CCCCCC">to go file and new and then you're going</font>

82
00:02:53,083 --> 00:02:59,119
to go file<font color="#E5E5E5"> and then we are going to call</font>

83
00:02:56,041 --> 00:03:02,053
<font color="#E5E5E5">this</font><font color="#CCCCCC"> Python</font><font color="#E5E5E5"> Tut and the extension for</font>

84
00:03:00,019 --> 00:03:04,093
Python files is dot py and click on

85
00:03:02,053 --> 00:03:06,055
people<font color="#E5E5E5"> or click on ok</font><font color="#CCCCCC"> and there you</font><font color="#E5E5E5"> are</font>

86
00:03:04,093 --> 00:03:07,096
for<font color="#CCCCCC"> Mac and for Windows you're</font><font color="#E5E5E5"> going to</font>

87
00:03:06,073 --> 00:03:09,115
do pretty<font color="#E5E5E5"> much exactly the same thing</font>

88
00:03:08,023 --> 00:03:11,116
<font color="#E5E5E5">create a new project</font><font color="#CCCCCC"> you're going to</font>

89
00:03:10,015 --> 00:03:13,114
find a location that's<font color="#E5E5E5"> perfectly fine</font>

90
00:03:12,016 --> 00:03:15,103
we're going<font color="#CCCCCC"> to say</font><font color="#E5E5E5"> ok</font><font color="#CCCCCC"> you're</font><font color="#E5E5E5"> going to</font>

91
00:03:14,014 --> 00:03:18,103
make<font color="#E5E5E5"> sure that you have version</font><font color="#CCCCCC"> 3.5</font>

92
00:03:16,003 --> 00:03:20,712
point<font color="#CCCCCC"> 1 of Python click on create it's</font>

93
00:03:19,003 --> 00:03:22,992
going to say it's<font color="#CCCCCC"> not empty click on yes</font>

94
00:03:20,739 --> 00:03:26,500
<font color="#CCCCCC">and then come over</font><font color="#E5E5E5"> here</font><font color="#CCCCCC"> and</font><font color="#E5E5E5"> click on</font>

95
00:03:23,019 --> 00:03:28,450
file and<font color="#E5E5E5"> new</font><font color="#CCCCCC"> and new file</font><font color="#E5E5E5"> and I'm going</font>

96
00:03:26,005 --> 00:03:30,054
<font color="#CCCCCC">to call this</font><font color="#E5E5E5"> Python Tut as well you can</font>

97
00:03:28,045 --> 00:03:32,092
call whatever<font color="#E5E5E5"> you want of</font><font color="#CCCCCC"> course dot py</font>

98
00:03:30,549 --> 00:03:36,040
<font color="#E5E5E5">click on</font><font color="#CCCCCC"> OK</font><font color="#E5E5E5"> and now you're ready</font><font color="#CCCCCC"> to</font>

99
00:03:32,092 --> 00:03:37,131
<font color="#CCCCCC">program alright so here we are</font><font color="#E5E5E5"> inside of</font>

100
00:03:36,004 --> 00:03:39,088
<font color="#CCCCCC">pycharm</font><font color="#E5E5E5"> and once again in the</font>

101
00:03:37,959 --> 00:03:41,410
<font color="#E5E5E5">description click on that it's going to</font>

102
00:03:39,088 --> 00:03:41,185
<font color="#E5E5E5">jump you</font><font color="#CCCCCC"> to the end of the video and it</font>

103
00:03:41,041 --> 00:03:44,104
<font color="#E5E5E5">will show you how to</font><font color="#CCCCCC"> install it</font><font color="#E5E5E5"> on Mac</font>

104
00:03:42,085 --> 00:03:45,154
or Windows<font color="#CCCCCC"> either one of</font><font color="#E5E5E5"> them so</font>

105
00:03:45,004 --> 00:03:49,075
basically what we're going<font color="#E5E5E5"> to do here is</font>

106
00:03:46,054 --> 00:03:51,115
we<font color="#CCCCCC"> are going</font><font color="#E5E5E5"> to want</font><font color="#CCCCCC"> to</font><font color="#E5E5E5"> ask the user</font><font color="#CCCCCC"> of</font>

107
00:03:49,075 --> 00:03:53,784
<font color="#E5E5E5">our program to enter in their name and</font>

108
00:03:52,015 --> 00:03:56,026
then we are going<font color="#CCCCCC"> to say hello and</font>

109
00:03:54,459 --> 00:03:58,750
follow that<font color="#E5E5E5"> up</font><font color="#CCCCCC"> with whatever</font><font color="#E5E5E5"> their name</font>

110
00:03:56,026 --> 00:04:00,315
is now remember I<font color="#E5E5E5"> said previously</font><font color="#CCCCCC"> that</font>

111
00:03:58,075 --> 00:04:02,116
we need to list all the<font color="#CCCCCC"> things</font><font color="#E5E5E5"> we want</font>

112
00:04:00,549 --> 00:04:05,470
<font color="#E5E5E5">to happen to solve our problem so what</font>

113
00:04:03,016 --> 00:04:07,155
we want<font color="#E5E5E5"> to do here is we want</font><font color="#CCCCCC"> to first</font>

114
00:04:05,047 --> 00:04:09,156
off if you put a hash symbol right<font color="#E5E5E5"> there</font>

115
00:04:07,299 --> 00:04:11,620
<font color="#CCCCCC">that's a comment that means the</font><font color="#E5E5E5"> Python</font>

116
00:04:09,579 --> 00:04:13,810
interpreter<font color="#E5E5E5"> is</font><font color="#CCCCCC"> going to just regard</font>

117
00:04:11,062 --> 00:04:15,651
everything you<font color="#E5E5E5"> put there</font><font color="#CCCCCC"> and it is very</font>

118
00:04:13,081 --> 00:04:17,850
<font color="#E5E5E5">good</font><font color="#CCCCCC"> to comment</font><font color="#E5E5E5"> your code if you want to</font>

119
00:04:16,209 --> 00:04:20,830
have a multi-line comment just<font color="#E5E5E5"> put those</font>

120
00:04:18,579 --> 00:04:22,510
<font color="#E5E5E5">three little quotes like that and look</font>

121
00:04:20,083 --> 00:04:22,172
at<font color="#CCCCCC"> that</font><font color="#E5E5E5"> now you have a multi-line</font>

122
00:04:22,051 --> 00:04:25,100
comment

123
00:04:23,072 --> 00:04:27,098
<font color="#E5E5E5">okay pretty cool stuff</font><font color="#CCCCCC"> so you can</font>

124
00:04:26,000 --> 00:04:29,081
<font color="#E5E5E5">remember</font><font color="#CCCCCC"> that for later pretty easy</font><font color="#E5E5E5"> to</font>

125
00:04:27,098 --> 00:04:31,169
<font color="#E5E5E5">remember</font><font color="#CCCCCC"> but what we want to</font><font color="#E5E5E5"> do here is</font>

126
00:04:29,081 --> 00:04:33,137
we<font color="#E5E5E5"> want</font><font color="#CCCCCC"> to just start</font><font color="#E5E5E5"> writing out</font>

127
00:04:32,069 --> 00:04:37,100
exactly what we want to happen

128
00:04:34,037 --> 00:04:44,074
so we're going<font color="#CCCCCC"> to say ask the</font><font color="#E5E5E5"> user to</font>

129
00:04:38,000 --> 00:04:49,001
<font color="#E5E5E5">input their name and assign it</font><font color="#CCCCCC"> to</font><font color="#E5E5E5"> a</font>

130
00:04:44,074 --> 00:04:50,108
<font color="#E5E5E5">variable named name and we have to have</font>

131
00:04:49,001 --> 00:04:53,087
a place<font color="#CCCCCC"> to store things and variables</font>

132
00:04:51,008 --> 00:04:55,082
allow us to say this<font color="#CCCCCC"> is a name and it's</font>

133
00:04:53,087 --> 00:04:57,182
going<font color="#E5E5E5"> to be associated</font><font color="#CCCCCC"> with a certain</font>

134
00:04:55,082 --> 00:05:00,137
piece of<font color="#E5E5E5"> data so how</font><font color="#CCCCCC"> do we convert that</font>

135
00:04:58,082 --> 00:05:03,095
into Python<font color="#CCCCCC"> well we want</font><font color="#E5E5E5"> to create a</font>

136
00:05:01,037 --> 00:05:06,068
variable<font color="#E5E5E5"> name name and there it</font><font color="#CCCCCC"> is and</font>

137
00:05:03,095 --> 00:05:08,114
then we want to<font color="#E5E5E5"> accept</font><font color="#CCCCCC"> input from the</font>

138
00:05:06,068 --> 00:05:10,130
user<font color="#CCCCCC"> so we just type in input we want to</font>

139
00:05:09,014 --> 00:05:13,043
put a message on the<font color="#CCCCCC"> screen</font><font color="#E5E5E5"> so the</font><font color="#CCCCCC"> user</font>

140
00:05:11,003 --> 00:05:16,037
can see<font color="#CCCCCC"> it and that message</font><font color="#E5E5E5"> is going to</font>

141
00:05:13,043 --> 00:05:17,129
<font color="#E5E5E5">be what is your name and you don't have</font>

142
00:05:16,064 --> 00:05:20,069
to put anything else there<font color="#E5E5E5"> and you can</font>

143
00:05:18,029 --> 00:05:22,046
skip down to<font color="#CCCCCC"> the</font><font color="#E5E5E5"> next line so what do we</font>

144
00:05:20,069 --> 00:05:26,074
<font color="#E5E5E5">want to do now</font><font color="#CCCCCC"> that we have that all set</font>

145
00:05:22,046 --> 00:05:32,005
<font color="#E5E5E5">up well we simply want to print out</font>

146
00:05:26,074 --> 00:05:33,107
<font color="#E5E5E5">hello followed</font><font color="#CCCCCC"> by the name they entered</font>

147
00:05:32,419 --> 00:05:35,990
<font color="#E5E5E5">okay that's it it's</font><font color="#CCCCCC"> pretty simple</font>

148
00:05:34,007 --> 00:05:37,103
<font color="#E5E5E5">program and how do we print things out</font>

149
00:05:35,099 --> 00:05:38,174
<font color="#CCCCCC">on the</font><font color="#E5E5E5"> screen well we just call for</font>

150
00:05:38,003 --> 00:05:42,008
print<font color="#E5E5E5"> because we want to print out on</font>

151
00:05:39,074 --> 00:05:42,140
the<font color="#CCCCCC"> screen and then</font><font color="#E5E5E5"> we type in</font><font color="#CCCCCC"> exactly</font>

152
00:05:42,008 --> 00:05:45,026
what we want to have here so we're going

153
00:05:43,004 --> 00:05:47,023
<font color="#CCCCCC">to</font><font color="#E5E5E5"> have hello and we're going to</font>

154
00:05:45,026 --> 00:05:48,107
separate<font color="#E5E5E5"> all</font><font color="#CCCCCC"> of the different things</font>

155
00:05:47,419 --> 00:05:51,410
we're going to print out to<font color="#E5E5E5"> the screen</font>

156
00:05:49,007 --> 00:05:53,060
so here is<font color="#E5E5E5"> going to be a string which is</font>

157
00:05:51,041 --> 00:05:55,300
<font color="#E5E5E5">just a bunch of characters</font><font color="#CCCCCC"> and here</font>

158
00:05:53,006 --> 00:05:58,052
we're<font color="#CCCCCC"> going to</font><font color="#E5E5E5"> say</font><font color="#CCCCCC"> that we want the data</font>

159
00:05:55,669 --> 00:06:00,260
that is stored<font color="#E5E5E5"> inside</font><font color="#CCCCCC"> of name to also be</font>

160
00:05:59,006 --> 00:06:02,102
<font color="#E5E5E5">printed out on the</font><font color="#CCCCCC"> screen</font>

161
00:06:00,026 --> 00:06:04,028
<font color="#CCCCCC">now I'm going</font><font color="#E5E5E5"> to run this and you can</font>

162
00:06:03,002 --> 00:06:07,007
see right here<font color="#CCCCCC"> at the</font><font color="#E5E5E5"> bottom of</font><font color="#CCCCCC"> the</font>

163
00:06:04,028 --> 00:06:09,101
<font color="#E5E5E5">screen it says what is your</font><font color="#CCCCCC"> name and I</font>

164
00:06:07,007 --> 00:06:11,102
am<font color="#CCCCCC"> going to type in my</font><font color="#E5E5E5"> name</font><font color="#CCCCCC"> look at</font><font color="#E5E5E5"> this</font>

165
00:06:10,001 --> 00:06:14,033
<font color="#E5E5E5">I made a mistake already I'm supposed to</font>

166
00:06:12,002 --> 00:06:17,045
be an expert<font color="#CCCCCC"> let's go and put a space</font>

167
00:06:14,033 --> 00:06:19,094
<font color="#E5E5E5">inside</font><font color="#CCCCCC"> of there and let's rerun this so</font>

168
00:06:17,045 --> 00:06:21,107
rerun it what is<font color="#E5E5E5"> your name and I'm going</font>

169
00:06:19,094 --> 00:06:23,129
to type in<font color="#E5E5E5"> Derrick and hit enter and</font>

170
00:06:22,007 --> 00:06:26,072
it's going<font color="#CCCCCC"> to say hello Derrick</font><font color="#E5E5E5"> just</font>

171
00:06:24,029 --> 00:06:27,086
<font color="#E5E5E5">like that so pretty</font><font color="#CCCCCC"> simple little</font>

172
00:06:26,072 --> 00:06:28,801
<font color="#E5E5E5">program</font>

173
00:06:27,086 --> 00:06:30,152
and we're going<font color="#CCCCCC"> to</font><font color="#E5E5E5"> get much more</font>

174
00:06:29,449 --> 00:06:33,830
<font color="#E5E5E5">complicated as these go on and of course</font>

175
00:06:31,052 --> 00:06:35,096
<font color="#E5E5E5">I'm going to start asking you questions</font>

176
00:06:33,083 --> 00:06:37,121
<font color="#CCCCCC">and then I'm going</font><font color="#E5E5E5"> to pause the video</font>

177
00:06:35,096 --> 00:06:40,100
<font color="#E5E5E5">you're going to write the code and then</font>

178
00:06:38,021 --> 00:06:42,790
you<font color="#E5E5E5"> are going to</font><font color="#CCCCCC"> then be able to</font><font color="#E5E5E5"> just</font>

179
00:06:41,000 --> 00:06:45,053
learn through<font color="#E5E5E5"> problem solving</font><font color="#CCCCCC"> so another</font>

180
00:06:42,979 --> 00:06:47,053
<font color="#E5E5E5">thing just before</font><font color="#CCCCCC"> we move on is variable</font>

181
00:06:45,053 --> 00:06:50,084
names can<font color="#E5E5E5"> either start with a letter</font><font color="#CCCCCC"> any</font>

182
00:06:47,719 --> 00:06:53,270
letter you'd like or underscores<font color="#E5E5E5"> and you</font>

183
00:06:50,084 --> 00:06:55,153
can of course<font color="#E5E5E5"> come in here and separate</font>

184
00:06:53,027 --> 00:06:58,121
these you<font color="#E5E5E5"> can say something like the</font>

185
00:06:55,909 --> 00:07:02,180
name like<font color="#CCCCCC"> that and</font><font color="#E5E5E5"> after the first</font>

186
00:06:59,021 --> 00:07:05,087
letter inside<font color="#E5E5E5"> of here</font><font color="#CCCCCC"> you can also come</font>

187
00:07:02,018 --> 00:07:07,657
in<font color="#E5E5E5"> and also use numbers so that</font><font color="#CCCCCC"> is the</font>

188
00:07:05,087 --> 00:07:09,196
ways that<font color="#E5E5E5"> you would</font><font color="#CCCCCC"> create variable</font>

189
00:07:07,819 --> 00:07:10,894
names<font color="#E5E5E5"> which are just storage cells</font><font color="#CCCCCC"> and</font>

190
00:07:09,979 --> 00:07:14,032
it's also<font color="#CCCCCC"> very important that</font><font color="#E5E5E5"> those</font>

191
00:07:11,569 --> 00:07:17,710
variable names are not any<font color="#E5E5E5"> of these</font>

192
00:07:14,509 --> 00:07:20,593
words right<font color="#CCCCCC"> here so you can't</font><font color="#E5E5E5"> use and</font>

193
00:07:17,071 --> 00:07:22,150
<font color="#CCCCCC">DDL from da-da-da-da-da</font><font color="#E5E5E5"> not anything you</font>

194
00:07:21,349 --> 00:07:25,381
<font color="#E5E5E5">really need to worry about and as you</font>

195
00:07:22,789 --> 00:07:27,826
learn<font color="#CCCCCC"> more about</font><font color="#E5E5E5"> Python</font><font color="#CCCCCC"> you are going to</font>

196
00:07:25,669 --> 00:07:30,560
just<font color="#CCCCCC"> know that these are commands</font><font color="#E5E5E5"> used</font>

197
00:07:28,159 --> 00:07:32,194
in Python<font color="#E5E5E5"> and you cannot use them who's</font>

198
00:07:30,056 --> 00:07:33,155
going<font color="#CCCCCC"> to name anything lambda</font><font color="#E5E5E5"> anyway or</font>

199
00:07:32,509 --> 00:07:36,830
a variable named<font color="#E5E5E5"> 4 these are all pretty</font>

200
00:07:34,055 --> 00:07:39,071
<font color="#E5E5E5">weird things and by no means should you</font>

201
00:07:36,083 --> 00:07:40,702
go in and try<font color="#E5E5E5"> to memorize that</font><font color="#CCCCCC"> ok so now</font>

202
00:07:39,071 --> 00:07:42,077
<font color="#E5E5E5">let's do something</font><font color="#CCCCCC"> a little</font><font color="#E5E5E5"> bit</font><font color="#CCCCCC"> more</font>

203
00:07:41,449 --> 00:07:47,360
complicated<font color="#E5E5E5"> basically what we're going</font>

204
00:07:43,031 --> 00:07:49,510
to<font color="#E5E5E5"> do is allow your users to do math on</font>

205
00:07:47,036 --> 00:07:51,038
<font color="#CCCCCC">to</font><font color="#E5E5E5"> values that</font><font color="#CCCCCC"> they enter so what are we</font>

206
00:07:49,789 --> 00:07:52,870
going to<font color="#E5E5E5"> do we're</font><font color="#CCCCCC"> going to type out</font>

207
00:07:51,056 --> 00:07:56,125
<font color="#E5E5E5">exactly what needs to be done</font><font color="#CCCCCC"> so we're</font>

208
00:07:53,599 --> 00:07:58,678
going<font color="#E5E5E5"> to say ask the user and you should</font>

209
00:07:56,629 --> 00:08:01,610
do this<font color="#E5E5E5"> for every</font><font color="#CCCCCC"> program</font><font color="#E5E5E5"> I even do it</font>

210
00:07:59,389 --> 00:08:02,467
today with very very big programs<font color="#CCCCCC"> so</font>

211
00:08:01,061 --> 00:08:09,340
we're going to say ask<font color="#E5E5E5"> the user to</font><font color="#CCCCCC"> input</font>

212
00:08:03,169 --> 00:08:12,178
<font color="#CCCCCC">two values and store them in variables</font>

213
00:08:09,889 --> 00:08:15,898
that are<font color="#CCCCCC"> going</font><font color="#E5E5E5"> to have the name</font><font color="#CCCCCC"> of num1</font>

214
00:08:12,259 --> 00:08:17,360
and num2<font color="#CCCCCC"> what we're going</font><font color="#E5E5E5"> to then do</font>

215
00:08:15,979 --> 00:08:19,075
<font color="#E5E5E5">that's going</font><font color="#CCCCCC"> to be a</font><font color="#E5E5E5"> little bit</font>

216
00:08:17,036 --> 00:08:21,065
<font color="#E5E5E5">different is whenever these pieces of</font>

217
00:08:19,939 --> 00:08:23,941
data come in they are<font color="#E5E5E5"> all considered</font>

218
00:08:21,065 --> 00:08:26,074
just random bits of characters or

219
00:08:24,139 --> 00:08:29,214
strings so what we're going<font color="#E5E5E5"> to have to</font>

220
00:08:26,659 --> 00:08:34,390
do is figure out<font color="#E5E5E5"> a way to convert the</font>

221
00:08:29,889 --> 00:08:36,710
strings that the users enter in<font color="#E5E5E5"> into</font>

222
00:08:34,039 --> 00:08:38,087
regular number

223
00:08:36,071 --> 00:08:40,390
and these regular numbers are not<font color="#E5E5E5"> going</font>

224
00:08:38,087 --> 00:08:42,316
<font color="#CCCCCC">to have decimal places</font><font color="#E5E5E5"> and in situations</font>

225
00:08:41,029 --> 00:08:45,290
<font color="#E5E5E5">in which</font><font color="#CCCCCC"> you have a variable</font><font color="#E5E5E5"> that</font>

226
00:08:43,099 --> 00:08:49,123
<font color="#E5E5E5">doesn't have a decimal place</font><font color="#CCCCCC"> it is known</font>

227
00:08:45,029 --> 00:08:51,268
as an integer<font color="#E5E5E5"> okay</font><font color="#CCCCCC"> so we received the</font>

228
00:08:49,339 --> 00:08:54,200
pieces of<font color="#E5E5E5"> data that we want the two</font>

229
00:08:51,529 --> 00:08:55,585
numbers that<font color="#E5E5E5"> we want to sum together</font><font color="#CCCCCC"> so</font>

230
00:08:54,002 --> 00:09:01,951
what do<font color="#E5E5E5"> we need to do that we need to</font>

231
00:08:56,089 --> 00:09:05,630
add the values entered<font color="#E5E5E5"> and store in a</font>

232
00:09:02,149 --> 00:09:07,910
<font color="#CCCCCC">variable</font><font color="#E5E5E5"> named sum okay pretty simple</font>

233
00:09:05,063 --> 00:09:09,095
stuff<font color="#CCCCCC"> and then what do we</font><font color="#E5E5E5"> need to do</font>

234
00:09:07,091 --> 00:09:12,091
<font color="#CCCCCC">well let's go</font><font color="#E5E5E5"> and do a little</font><font color="#CCCCCC"> bit more</font>

235
00:09:09,095 --> 00:09:18,104
<font color="#CCCCCC">math</font><font color="#E5E5E5"> let's also say that we want to</font>

236
00:09:12,091 --> 00:09:21,092
subtract<font color="#E5E5E5"> values and store in a</font><font color="#CCCCCC"> variable</font>

237
00:09:19,004 --> 00:09:25,013
that<font color="#E5E5E5"> is known as</font><font color="#CCCCCC"> difference</font><font color="#E5E5E5"> and let's do</font>

238
00:09:22,001 --> 00:09:31,004
some more<font color="#CCCCCC"> we will</font><font color="#E5E5E5"> multiply the values</font>

239
00:09:25,094 --> 00:09:34,105
<font color="#E5E5E5">and store in a variable</font><font color="#CCCCCC"> that is named</font>

240
00:09:31,004 --> 00:09:39,062
product<font color="#CCCCCC"> and finally we</font><font color="#E5E5E5"> will divide the</font>

241
00:09:35,005 --> 00:09:41,012
values and store in another variable

242
00:09:39,062 --> 00:09:42,158
<font color="#CCCCCC">that is going to be called</font><font color="#E5E5E5"> quotients</font><font color="#CCCCCC"> and</font>

243
00:09:41,075 --> 00:09:46,124
<font color="#E5E5E5">what the heck let's do another one</font><font color="#CCCCCC"> and</font>

244
00:09:43,058 --> 00:09:50,086
<font color="#E5E5E5">then we</font><font color="#CCCCCC"> also want to use a funky little</font>

245
00:09:47,024 --> 00:09:55,076
tool<font color="#CCCCCC"> that we have called modulus</font><font color="#E5E5E5"> on the</font>

246
00:09:50,086 --> 00:09:57,122
values to<font color="#CCCCCC"> find</font><font color="#E5E5E5"> the remainder and guess</font>

247
00:09:55,076 --> 00:09:59,138
what we<font color="#E5E5E5"> are going to call that remainder</font>

248
00:09:58,022 --> 00:10:04,079
<font color="#E5E5E5">and let's do another one</font><font color="#CCCCCC"> we're going to</font>

249
00:10:00,038 --> 00:10:06,041
<font color="#E5E5E5">print the results on the</font><font color="#CCCCCC"> screen for</font><font color="#E5E5E5"> the</font>

250
00:10:04,079 --> 00:10:08,093
<font color="#CCCCCC">user</font><font color="#E5E5E5"> because it wouldn't be useful if it</font>

251
00:10:06,068 --> 00:10:10,142
didn't do<font color="#CCCCCC"> that</font><font color="#E5E5E5"> and I guess that's</font>

252
00:10:08,093 --> 00:10:12,442
basically it<font color="#CCCCCC"> so now</font><font color="#E5E5E5"> after we created all</font>

253
00:10:11,042 --> 00:10:14,581
<font color="#E5E5E5">the steps that we</font><font color="#CCCCCC"> need</font><font color="#E5E5E5"> to do we're</font><font color="#CCCCCC"> going</font>

254
00:10:13,279 --> 00:10:17,750
<font color="#E5E5E5">to come in here</font><font color="#CCCCCC"> and fill it in</font><font color="#E5E5E5"> with</font>

255
00:10:14,959 --> 00:10:20,510
Python code<font color="#CCCCCC"> so how do we receive two</font>

256
00:10:17,075 --> 00:10:22,654
pieces of<font color="#CCCCCC"> data inside of Python pretty</font>

257
00:10:20,051 --> 00:10:25,055
simple we used input before<font color="#CCCCCC"> so of course</font>

258
00:10:23,329 --> 00:10:30,230
we're going<font color="#E5E5E5"> to have</font><font color="#CCCCCC"> input is going to be</font>

259
00:10:25,091 --> 00:10:31,175
<font color="#E5E5E5">used and</font><font color="#CCCCCC"> we're</font><font color="#E5E5E5"> going to again type in</font>

260
00:10:30,023 --> 00:10:36,057
the men the message we want<font color="#E5E5E5"> so we're</font>

261
00:10:32,075 --> 00:10:38,163
going to<font color="#E5E5E5"> say enter two numbers and then</font>

262
00:10:36,057 --> 00:10:41,103
we are going to receive two numbers and

263
00:10:39,063 --> 00:10:43,116
<font color="#E5E5E5">there's a fancy little function inside</font>

264
00:10:42,003 --> 00:10:46,005
<font color="#CCCCCC">of</font><font color="#E5E5E5"> function inside</font><font color="#CCCCCC"> of Python called</font>

265
00:10:44,016 --> 00:10:47,115
split<font color="#E5E5E5"> what it's going to do is it's</font>

266
00:10:46,023 --> 00:10:49,059
<font color="#E5E5E5">going to you're going</font><font color="#CCCCCC"> to enter not two</font>

267
00:10:48,015 --> 00:10:52,026
numbers let's say<font color="#CCCCCC"> they're</font><font color="#E5E5E5"> two and four</font>

268
00:10:49,059 --> 00:10:53,100
<font color="#E5E5E5">well we have to decide how are we going</font>

269
00:10:52,026 --> 00:10:56,079
<font color="#E5E5E5">to take these two</font><font color="#CCCCCC"> numbers that</font><font color="#E5E5E5"> they</font>

270
00:10:54,000 --> 00:10:59,019
enter in well what split does is it says

271
00:10:56,079 --> 00:11:00,123
<font color="#E5E5E5">if there is a space or</font><font color="#CCCCCC"> whitespace</font>

272
00:10:59,019 --> 00:11:03,057
<font color="#CCCCCC">between</font><font color="#E5E5E5"> these numbers we are going to</font>

273
00:11:01,023 --> 00:11:06,081
separate those values<font color="#CCCCCC"> that way and then</font>

274
00:11:03,057 --> 00:11:08,109
we're going<font color="#E5E5E5"> to have to assign them to</font>

275
00:11:06,081 --> 00:11:10,116
variables and if you want to have two

276
00:11:09,009 --> 00:11:13,017
variables one<font color="#CCCCCC"> is called</font><font color="#E5E5E5"> num1 and the</font>

277
00:11:11,016 --> 00:11:14,070
<font color="#E5E5E5">other one's called num2</font><font color="#CCCCCC"> you just put the</font>

278
00:11:13,017 --> 00:11:16,023
two of them in there just<font color="#CCCCCC"> like</font><font color="#E5E5E5"> you did</font>

279
00:11:14,007 --> 00:11:17,043
with<font color="#E5E5E5"> the one previously and there you go</font>

280
00:11:16,077 --> 00:11:19,173
<font color="#CCCCCC">now you're going to be able to receive</font>

281
00:11:18,006 --> 00:11:22,101
two pieces of<font color="#CCCCCC"> data</font><font color="#E5E5E5"> instead</font><font color="#CCCCCC"> of just one</font>

282
00:11:20,073 --> 00:11:25,077
so pretty cool<font color="#CCCCCC"> stuff we then have to</font>

283
00:11:23,001 --> 00:11:28,017
<font color="#E5E5E5">convert our strings so that</font><font color="#CCCCCC"> python knows</font>

284
00:11:26,013 --> 00:11:29,094
that we're working with<font color="#E5E5E5"> integers and</font>

285
00:11:28,017 --> 00:11:32,025
that's<font color="#E5E5E5"> pretty easy to do we</font><font color="#CCCCCC"> just say</font>

286
00:11:29,094 --> 00:11:33,156
that<font color="#CCCCCC"> we want to</font><font color="#E5E5E5"> store</font><font color="#CCCCCC"> inside of the</font>

287
00:11:32,025 --> 00:11:37,119
number one<font color="#E5E5E5"> variable</font><font color="#CCCCCC"> an integer version</font>

288
00:11:34,056 --> 00:11:39,141
of num1<font color="#E5E5E5"> and then we can go and do</font>

289
00:11:38,019 --> 00:11:43,050
<font color="#E5E5E5">exactly the same thing for num2</font>

290
00:11:40,041 --> 00:11:45,138
so there's<font color="#E5E5E5"> num2</font><font color="#CCCCCC"> and there's num2 so it's</font>

291
00:11:43,005 --> 00:11:48,057
just converting a string<font color="#CCCCCC"> into an integer</font>

292
00:11:46,038 --> 00:11:51,042
<font color="#E5E5E5">it's all it's doing now we need to add</font>

293
00:11:49,002 --> 00:11:52,071
these<font color="#CCCCCC"> values and store them into</font><font color="#E5E5E5"> a</font>

294
00:11:51,042 --> 00:11:55,080
variable<font color="#E5E5E5"> called sum</font>

295
00:11:52,071 --> 00:11:57,153
pretty easy to<font color="#E5E5E5"> do we</font><font color="#CCCCCC"> just say num1 plus</font>

296
00:11:55,008 --> 00:11:59,013
num2<font color="#CCCCCC"> pretty much</font><font color="#E5E5E5"> exactly the way that</font>

297
00:11:58,053 --> 00:12:00,135
<font color="#E5E5E5">you</font><font color="#CCCCCC"> would think it</font><font color="#E5E5E5"> would work</font>

298
00:11:59,085 --> 00:12:02,157
so we're going to<font color="#E5E5E5"> take the value</font><font color="#CCCCCC"> in here</font>

299
00:12:01,035 --> 00:12:05,103
<font color="#CCCCCC">add it to the value in here and store it</font>

300
00:12:03,057 --> 00:12:07,092
inside of<font color="#E5E5E5"> this guy right</font><font color="#CCCCCC"> here let's go</font>

301
00:12:06,003 --> 00:12:09,087
and<font color="#E5E5E5"> do the same thing with subtraction</font>

302
00:12:07,092 --> 00:12:10,185
and all we do is<font color="#CCCCCC"> change that guy right</font>

303
00:12:09,087 --> 00:12:12,186
there<font color="#CCCCCC"> when we want to multiply we're</font>

304
00:12:11,085 --> 00:12:14,181
just going to go and put a star<font color="#CCCCCC"> inside</font>

305
00:12:13,086 --> 00:12:16,179
of there like<font color="#E5E5E5"> that</font><font color="#CCCCCC"> if we want to divide</font>

306
00:12:15,081 --> 00:12:19,127
<font color="#E5E5E5">we're going to change this to divide and</font>

307
00:12:17,079 --> 00:12:21,123
be modulus which is<font color="#E5E5E5"> going to give us the</font>

308
00:12:20,027 --> 00:12:23,091
remainder<font color="#E5E5E5"> we're just going to come in</font>

309
00:12:22,023 --> 00:12:26,115
<font color="#E5E5E5">here and we're going to put it like</font><font color="#CCCCCC"> that</font>

310
00:12:23,091 --> 00:12:28,098
<font color="#E5E5E5">but this is</font><font color="#CCCCCC"> sum we can't use these</font>

311
00:12:27,015 --> 00:12:31,071
<font color="#E5E5E5">variables these variable names because</font>

312
00:12:29,061 --> 00:12:33,087
it would overwrite the<font color="#CCCCCC"> value stored</font><font color="#E5E5E5"> in</font>

313
00:12:31,071 --> 00:12:35,094
some each time and we<font color="#CCCCCC"> already know that</font>

314
00:12:33,087 --> 00:12:37,094
<font color="#E5E5E5">we want to store those in variables</font>

315
00:12:35,094 --> 00:12:40,119
called<font color="#E5E5E5"> difference in this situation and</font>

316
00:12:38,057 --> 00:12:43,098
product in the situation<font color="#E5E5E5"> because we</font>

317
00:12:41,019 --> 00:12:46,026
wrote all this stuff out and quotient<font color="#E5E5E5"> in</font>

318
00:12:43,098 --> 00:12:47,207
this situation<font color="#E5E5E5"> right</font><font color="#CCCCCC"> here</font><font color="#E5E5E5"> and then</font>

319
00:12:46,026 --> 00:12:49,955
finally remainder

320
00:12:48,089 --> 00:12:52,100
like we have right<font color="#CCCCCC"> here</font><font color="#E5E5E5"> but now we want</font>

321
00:12:50,189 --> 00:12:53,270
<font color="#CCCCCC">to print our results and we want to</font>

322
00:12:52,199 --> 00:12:57,260
<font color="#E5E5E5">print them in a format let's say that</font>

323
00:12:53,999 --> 00:13:00,062
they enter<font color="#E5E5E5"> 5</font><font color="#CCCCCC"> + + 4 inside of here</font><font color="#E5E5E5"> what</font>

324
00:12:57,809 --> 00:13:04,814
we want to do is we want<font color="#CCCCCC"> to go and print</font>

325
00:13:00,629 --> 00:13:07,800
<font color="#E5E5E5">it out on</font><font color="#CCCCCC"> the screen 5 + 4 is</font><font color="#E5E5E5"> equal to 9</font>

326
00:13:05,309 --> 00:13:09,356
<font color="#CCCCCC">so how</font><font color="#E5E5E5"> are we going to do</font><font color="#CCCCCC"> that with</font><font color="#E5E5E5"> our</font>

327
00:13:07,008 --> 00:13:11,025
print statement<font color="#E5E5E5"> we can't do it in its</font>

328
00:13:09,779 --> 00:13:15,660
current<font color="#E5E5E5"> format so what we're going</font><font color="#CCCCCC"> to do</font>

329
00:13:11,097 --> 00:13:16,185
<font color="#E5E5E5">instead is we need to format our output</font>

330
00:13:15,066 --> 00:13:18,995
<font color="#E5E5E5">onto the screen whenever it's printed</font>

331
00:13:17,085 --> 00:13:20,160
<font color="#E5E5E5">we're going to still use print just like</font>

332
00:13:19,589 --> 00:13:24,120
we did before<font color="#CCCCCC"> and what we're</font><font color="#E5E5E5"> going to do</font>

333
00:13:21,006 --> 00:13:26,975
at the end<font color="#CCCCCC"> of this is like I said we</font>

334
00:13:24,012 --> 00:13:31,451
need<font color="#CCCCCC"> to format our output</font><font color="#E5E5E5"> and we need to</font>

335
00:13:27,569 --> 00:13:33,650
say num1 and num2<font color="#CCCCCC"> and then some</font>

336
00:13:31,559 --> 00:13:35,591
but how<font color="#E5E5E5"> inside of this little string</font>

337
00:13:34,379 --> 00:13:37,412
inside of here remember if<font color="#E5E5E5"> it's in</font>

338
00:13:35,879 --> 00:13:38,966
quotes it's a string we're just building

339
00:13:37,709 --> 00:13:42,660
<font color="#E5E5E5">it ourselves</font><font color="#CCCCCC"> how are we going</font><font color="#E5E5E5"> to say</font>

340
00:13:39,749 --> 00:13:43,787
<font color="#CCCCCC">we're num1 num2 and some go to well we</font>

341
00:13:42,066 --> 00:13:45,129
just come in here<font color="#E5E5E5"> and throw in some</font>

342
00:13:44,129 --> 00:13:48,540
curly brackets<font color="#CCCCCC"> and throw</font><font color="#E5E5E5"> in some</font><font color="#CCCCCC"> more</font>

343
00:13:46,029 --> 00:13:50,037
curly brackets and then throw in one

344
00:13:48,054 --> 00:13:51,135
more curly<font color="#E5E5E5"> bracket and what this is</font>

345
00:13:50,037 --> 00:13:54,042
going<font color="#E5E5E5"> to do</font><font color="#CCCCCC"> for us is it's going</font><font color="#E5E5E5"> to take</font>

346
00:13:52,035 --> 00:13:56,834
<font color="#E5E5E5">this number one right over the value 4</font>

347
00:13:54,042 --> 00:13:58,098
it is<font color="#CCCCCC"> and throw it</font><font color="#E5E5E5"> right there num2</font><font color="#CCCCCC"> is</font>

348
00:13:57,149 --> 00:14:01,290
going<font color="#E5E5E5"> to be thrown in right there and</font>

349
00:13:58,098 --> 00:14:02,142
then<font color="#E5E5E5"> some is going to be thrown in right</font>

350
00:14:01,029 --> 00:14:05,798
there<font color="#E5E5E5"> so that is how we can format all</font>

351
00:14:03,042 --> 00:14:08,951
of our data<font color="#E5E5E5"> we can just come in</font><font color="#CCCCCC"> here and</font>

352
00:14:06,059 --> 00:14:11,123
do<font color="#E5E5E5"> this a couple</font><font color="#CCCCCC"> times and</font><font color="#E5E5E5"> then we will</font>

353
00:14:09,329 --> 00:14:13,331
<font color="#E5E5E5">just change that</font><font color="#CCCCCC"> to subtraction</font><font color="#E5E5E5"> we can</font>

354
00:14:11,699 --> 00:14:16,050
come up<font color="#CCCCCC"> here make</font><font color="#E5E5E5"> sure that we have our</font>

355
00:14:13,529 --> 00:14:18,240
variable<font color="#CCCCCC"> names</font><font color="#E5E5E5"> exactly the same and also</font>

356
00:14:16,005 --> 00:14:21,054
<font color="#CCCCCC">if I didn't mention this previously</font>

357
00:14:18,024 --> 00:14:23,783
difference<font color="#CCCCCC"> is completely different from</font>

358
00:14:21,054 --> 00:14:26,085
difference<font color="#CCCCCC"> it's this case sensitive so</font>

359
00:14:23,999 --> 00:14:29,160
<font color="#E5E5E5">make sure you use exactly the</font><font color="#CCCCCC"> same</font>

360
00:14:26,085 --> 00:14:30,090
variable<font color="#E5E5E5"> name and also we can</font><font color="#CCCCCC"> come up</font>

361
00:14:29,016 --> 00:14:34,115
here<font color="#E5E5E5"> and get product</font><font color="#CCCCCC"> bring this down</font>

362
00:14:31,035 --> 00:14:36,129
here change this to multiply and throw

363
00:14:34,259 --> 00:14:38,321
in<font color="#E5E5E5"> products right there and quotient</font>

364
00:14:37,029 --> 00:14:40,988
whenever your very first starting off

365
00:14:38,879 --> 00:14:42,990
with programming it<font color="#E5E5E5"> is a good</font><font color="#CCCCCC"> idea to</font>

366
00:14:41,249 --> 00:14:44,288
<font color="#CCCCCC">just come in</font><font color="#E5E5E5"> here copy and paste make</font>

367
00:14:42,099 --> 00:14:45,248
sure these variable names are exactly

368
00:14:44,639 --> 00:14:49,658
the same<font color="#CCCCCC"> that's not a problem</font>

369
00:14:46,139 --> 00:14:52,180
and then remainder for the modulus<font color="#E5E5E5"> and</font>

370
00:14:49,829 --> 00:14:55,210
let's change<font color="#CCCCCC"> to</font><font color="#E5E5E5"> this and</font>

371
00:14:52,018 --> 00:14:57,061
remainder<font color="#E5E5E5"> and if we save</font><font color="#CCCCCC"> that and then</font>

372
00:14:55,021 --> 00:14:59,023
we run<font color="#CCCCCC"> it</font><font color="#E5E5E5"> we come down here enter two</font>

373
00:14:57,061 --> 00:15:01,072
numbers and the two<font color="#E5E5E5"> numbers we're going</font>

374
00:14:59,041 --> 00:15:04,054
to<font color="#E5E5E5"> enter our five remember</font><font color="#CCCCCC"> the space and</font>

375
00:15:01,072 --> 00:15:06,100
<font color="#E5E5E5">a four hit enter and is going</font><font color="#CCCCCC"> to go and</font>

376
00:15:04,054 --> 00:15:08,098
output our data exactly<font color="#E5E5E5"> the way that we</font>

377
00:15:07,000 --> 00:15:10,036
think that<font color="#E5E5E5"> it should</font><font color="#CCCCCC"> and let's just move</font>

378
00:15:08,098 --> 00:15:12,103
this<font color="#CCCCCC"> up here so you can</font><font color="#E5E5E5"> see everything</font>

379
00:15:10,036 --> 00:15:14,110
<font color="#E5E5E5">all at once</font><font color="#CCCCCC"> so there you</font><font color="#E5E5E5"> go that</font><font color="#CCCCCC"> is</font><font color="#E5E5E5"> how</font>

380
00:15:13,003 --> 00:15:16,012
<font color="#CCCCCC">we go about receiving</font><font color="#E5E5E5"> all that</font>

381
00:15:15,001 --> 00:15:19,095
<font color="#CCCCCC">information and then providing the</font>

382
00:15:16,093 --> 00:15:21,127
<font color="#E5E5E5">proper output and now based off of</font>

383
00:15:20,004 --> 00:15:25,006
<font color="#E5E5E5">everything you learned right there</font><font color="#CCCCCC"> I</font>

384
00:15:22,027 --> 00:15:27,031
think<font color="#CCCCCC"> you are</font><font color="#E5E5E5"> ready to solve your first</font>

385
00:15:25,024 --> 00:15:30,076
Python program<font color="#E5E5E5"> so what we want to do</font>

386
00:15:27,067 --> 00:15:32,155
here is our problem<font color="#CCCCCC"> let's go and throw</font>

387
00:15:30,076 --> 00:15:36,130
in a comment<font color="#E5E5E5"> our problem is going to</font>

388
00:15:33,055 --> 00:15:41,089
allow the user to<font color="#E5E5E5"> enter miles</font>

389
00:15:37,003 --> 00:15:46,021
so we'll say<font color="#E5E5E5"> receive miles and convert</font>

390
00:15:41,089 --> 00:15:48,187
<font color="#E5E5E5">to kilometers and then some</font><font color="#CCCCCC"> information</font>

391
00:15:46,048 --> 00:15:54,052
that we need to know is that<font color="#CCCCCC"> kilometres</font>

392
00:15:49,087 --> 00:15:57,115
<font color="#CCCCCC">is going</font><font color="#E5E5E5"> to be equal to miles times one</font>

393
00:15:54,088 --> 00:15:59,173
point six<font color="#CCCCCC"> oh</font><font color="#E5E5E5"> nine</font><font color="#CCCCCC"> three four</font><font color="#E5E5E5"> and the</font>

394
00:15:58,015 --> 00:16:02,098
output are<font color="#E5E5E5"> basically the program the way</font>

395
00:16:00,073 --> 00:16:04,114
we want it<font color="#CCCCCC"> to look here is the message</font>

396
00:16:02,098 --> 00:16:07,102
<font color="#E5E5E5">is going to</font><font color="#CCCCCC"> be</font><font color="#E5E5E5"> printed out on screen is</font>

397
00:16:05,014 --> 00:16:10,081
enter miles they are then going to<font color="#E5E5E5"> be</font>

398
00:16:08,002 --> 00:16:12,079
<font color="#CCCCCC">able</font><font color="#E5E5E5"> to enter the number five and then</font>

399
00:16:10,081 --> 00:16:16,144
we are<font color="#E5E5E5"> going to output on the screen</font>

400
00:16:12,079 --> 00:16:18,175
five miles<font color="#E5E5E5"> equals and something like</font><font color="#CCCCCC"> 8.0</font>

401
00:16:17,044 --> 00:16:22,093
<font color="#CCCCCC">for something kilometers whatever that</font>

402
00:16:19,075 --> 00:16:23,173
is so<font color="#CCCCCC"> there you go so like it's a cheat</font>

403
00:16:22,093 --> 00:16:25,147
sheet description you can<font color="#E5E5E5"> refer</font><font color="#CCCCCC"> to that</font>

404
00:16:24,073 --> 00:16:27,073
so that<font color="#CCCCCC"> you don't have</font><font color="#E5E5E5"> to jump back</font><font color="#CCCCCC"> and</font>

405
00:16:26,047 --> 00:16:28,138
forth<font color="#E5E5E5"> through the video or you could</font>

406
00:16:27,073 --> 00:16:30,124
rewind the video or<font color="#E5E5E5"> whatever you want to</font>

407
00:16:29,038 --> 00:16:33,091
do but basically<font color="#CCCCCC"> what I want you</font><font color="#E5E5E5"> to be</font>

408
00:16:31,024 --> 00:16:35,095
<font color="#CCCCCC">able to do here is to</font><font color="#E5E5E5"> print out this</font>

409
00:16:33,091 --> 00:16:37,147
string allow them to enter<font color="#CCCCCC"> a number</font><font color="#E5E5E5"> and</font>

410
00:16:35,095 --> 00:16:40,108
then<font color="#CCCCCC"> output this information</font><font color="#E5E5E5"> and what</font>

411
00:16:38,047 --> 00:16:42,115
<font color="#CCCCCC">you do right now is pause your screen</font><font color="#E5E5E5"> go</font>

412
00:16:41,008 --> 00:16:45,073
write the code and then come back and

413
00:16:43,015 --> 00:16:48,058
I'll<font color="#CCCCCC"> show</font><font color="#E5E5E5"> you the results or my solution</font>

414
00:16:45,073 --> 00:16:50,080
for<font color="#CCCCCC"> this program alright so here we are</font>

415
00:16:48,058 --> 00:16:52,060
back<font color="#CCCCCC"> again and now I'm</font><font color="#E5E5E5"> going to walk</font>

416
00:16:50,008 --> 00:16:53,101
step-by-step<font color="#CCCCCC"> through exactly how</font><font color="#E5E5E5"> to</font>

417
00:16:52,006 --> 00:16:59,053
<font color="#CCCCCC">solve this</font><font color="#E5E5E5"> so I'm going</font><font color="#CCCCCC"> to say something</font>

418
00:16:54,073 --> 00:17:01,114
<font color="#CCCCCC">like ask the user to input</font><font color="#E5E5E5"> miles</font>

419
00:17:00,007 --> 00:17:08,056
<font color="#E5E5E5">hopefully you went and typed all this</font>

420
00:17:02,014 --> 00:17:10,039
out and assign it<font color="#E5E5E5"> to the miles variable</font>

421
00:17:08,056 --> 00:17:12,130
<font color="#E5E5E5">and what else are we going to need to do</font>

422
00:17:10,039 --> 00:17:17,068
here<font color="#E5E5E5"> well remember we need to convert</font>

423
00:17:13,003 --> 00:17:19,078
<font color="#E5E5E5">from string to integer</font><font color="#CCCCCC"> and yes there's</font>

424
00:17:17,068 --> 00:17:23,082
other ways<font color="#E5E5E5"> to</font><font color="#CCCCCC"> do that I'll get</font><font color="#E5E5E5"> into</font><font color="#CCCCCC"> that</font>

425
00:17:20,005 --> 00:17:28,081
<font color="#CCCCCC">later on we then also want</font><font color="#E5E5E5"> to perform</font>

426
00:17:23,082 --> 00:17:31,165
<font color="#E5E5E5">calculation by multiplying one point six</font>

427
00:17:28,081 --> 00:17:34,117
<font color="#E5E5E5">zero nine</font><font color="#CCCCCC"> three</font><font color="#E5E5E5"> four times</font><font color="#CCCCCC"> miles and</font>

428
00:17:32,065 --> 00:17:37,134
save that in a variable<font color="#E5E5E5"> called</font>

429
00:17:35,017 --> 00:17:42,076
kilometers and then we want<font color="#E5E5E5"> to print</font>

430
00:17:38,034 --> 00:17:43,132
results using<font color="#E5E5E5"> format yes I use kind of</font>

431
00:17:42,076 --> 00:17:45,094
<font color="#E5E5E5">bad english whenever</font><font color="#CCCCCC"> i'm typing</font><font color="#E5E5E5"> out</font>

432
00:17:44,032 --> 00:17:46,114
comments<font color="#CCCCCC"> sometimes</font><font color="#E5E5E5"> sorry about</font><font color="#CCCCCC"> that</font>

433
00:17:45,094 --> 00:17:47,191
hopefully it<font color="#E5E5E5"> doesn't bother you</font><font color="#CCCCCC"> all</font>

434
00:17:47,014 --> 00:17:51,028
<font color="#E5E5E5">right so what we going to do right here</font>

435
00:17:48,091 --> 00:17:53,113
<font color="#CCCCCC">well we're going</font><font color="#E5E5E5"> to create a variable</font>

436
00:17:51,028 --> 00:17:56,116
<font color="#E5E5E5">called miles and we want to receive</font>

437
00:17:54,013 --> 00:18:01,027
input<font color="#E5E5E5"> and we want to print out</font><font color="#CCCCCC"> a</font><font color="#E5E5E5"> message</font>

438
00:17:57,016 --> 00:18:02,110
here<font color="#CCCCCC"> that says enter</font><font color="#E5E5E5"> miles and we'll</font>

439
00:18:01,027 --> 00:18:06,079
throw a<font color="#E5E5E5"> little space inside of there</font>

440
00:18:03,001 --> 00:18:10,015
then we want<font color="#E5E5E5"> to convert miles into an</font>

441
00:18:06,079 --> 00:18:12,157
integer version of the variable called

442
00:18:10,024 --> 00:18:15,106
miles<font color="#E5E5E5"> we need and then need</font><font color="#CCCCCC"> to perform</font>

443
00:18:13,057 --> 00:18:19,093
our calculations<font color="#CCCCCC"> this</font><font color="#E5E5E5"> is going to be</font>

444
00:18:16,006 --> 00:18:23,050
<font color="#CCCCCC">kilometers is equal to miles times one</font>

445
00:18:19,093 --> 00:18:24,184
point six oh nine<font color="#E5E5E5"> three four and then we</font>

446
00:18:23,005 --> 00:18:27,016
need to<font color="#CCCCCC"> print our results using format</font>

447
00:18:25,084 --> 00:18:28,159
and I showed<font color="#E5E5E5"> you what I wanted you to</font>

448
00:18:27,061 --> 00:18:30,142
print out<font color="#E5E5E5"> before and we're going to</font>

449
00:18:29,059 --> 00:18:33,142
throw in<font color="#CCCCCC"> our curly brackets right there</font>

450
00:18:31,042 --> 00:18:36,046
and we're going to say<font color="#CCCCCC"> miles equals and</font>

451
00:18:34,042 --> 00:18:38,113
then throw in with the kilometers come

452
00:18:36,082 --> 00:18:40,129
<font color="#E5E5E5">outside of that double quote and then</font>

453
00:18:39,013 --> 00:18:42,100
<font color="#E5E5E5">we're going to say format and then what</font>

454
00:18:41,029 --> 00:18:44,035
we<font color="#E5E5E5"> want to go inside of there is going</font>

455
00:18:43,000 --> 00:18:48,013
<font color="#CCCCCC">to</font><font color="#E5E5E5"> be</font><font color="#CCCCCC"> whatever is stored</font><font color="#E5E5E5"> in the variable</font>

456
00:18:44,089 --> 00:18:50,101
<font color="#E5E5E5">called miles and whatever is stored in</font>

457
00:18:48,013 --> 00:18:52,102
the variable<font color="#CCCCCC"> called</font><font color="#E5E5E5"> kilometers we're</font>

458
00:18:51,001 --> 00:18:55,006
going to save<font color="#CCCCCC"> that and then we're</font><font color="#E5E5E5"> going</font>

459
00:18:53,002 --> 00:18:57,010
<font color="#E5E5E5">to run it</font><font color="#CCCCCC"> and</font><font color="#E5E5E5"> it's going</font><font color="#CCCCCC"> to say</font><font color="#E5E5E5"> enter</font>

460
00:18:55,006 --> 00:19:00,037
miles<font color="#E5E5E5"> in our example I typed in five and</font>

461
00:18:57,082 --> 00:19:02,125
here we can<font color="#E5E5E5"> see five miles equals eight</font>

462
00:19:00,037 --> 00:19:04,132
point<font color="#E5E5E5"> zero four six seven kilometers so</font>

463
00:19:03,025 --> 00:19:07,124
there you go<font color="#CCCCCC"> hopefully you did good with</font>

464
00:19:05,032 --> 00:19:09,098
<font color="#CCCCCC">your first example if you didn't</font>

465
00:19:08,024 --> 00:19:12,047
is not a problem<font color="#E5E5E5"> at all you're going to</font>

466
00:19:09,098 --> 00:19:14,120
have a lot<font color="#CCCCCC"> of chances to</font><font color="#E5E5E5"> do all of this</font>

467
00:19:12,047 --> 00:19:17,051
right<font color="#E5E5E5"> and like it said making mistakes</font>

468
00:19:15,002 --> 00:19:19,061
<font color="#CCCCCC">is the best way to be able to</font><font color="#E5E5E5"> learn</font><font color="#CCCCCC"> how</font>

469
00:19:17,051 --> 00:19:20,102
to program that's all programming is so

470
00:19:19,079 --> 00:19:22,115
now let's do something<font color="#E5E5E5"> a little bit</font><font color="#CCCCCC"> more</font>

471
00:19:21,002 --> 00:19:25,010
interesting<font color="#E5E5E5"> let's say we want to create</font>

472
00:19:23,015 --> 00:19:27,032
<font color="#CCCCCC">a calculator</font><font color="#E5E5E5"> so we</font><font color="#CCCCCC"> want to be able</font><font color="#E5E5E5"> to</font>

473
00:19:25,001 --> 00:19:29,060
receive two numbers<font color="#CCCCCC"> separated by</font><font color="#E5E5E5"> the</font>

474
00:19:27,032 --> 00:19:32,123
operator of<font color="#E5E5E5"> choice and then we want to</font>

475
00:19:29,069 --> 00:19:35,156
<font color="#E5E5E5">show</font><font color="#CCCCCC"> a</font><font color="#E5E5E5"> result</font><font color="#CCCCCC"> so for</font><font color="#E5E5E5"> example I want</font><font color="#CCCCCC"> to</font>

476
00:19:33,023 --> 00:19:38,066
output<font color="#E5E5E5"> on the screen</font><font color="#CCCCCC"> enter calculation</font>

477
00:19:36,056 --> 00:19:40,115
<font color="#E5E5E5">and then</font><font color="#CCCCCC"> I want them to be able to</font><font color="#E5E5E5"> enter</font>

478
00:19:38,066 --> 00:19:42,092
something<font color="#E5E5E5"> like</font><font color="#CCCCCC"> five</font><font color="#E5E5E5"> times</font><font color="#CCCCCC"> six and</font><font color="#E5E5E5"> then</font>

479
00:19:41,015 --> 00:19:45,053
it's<font color="#CCCCCC"> going to output the</font><font color="#E5E5E5"> proper</font>

480
00:19:42,092 --> 00:19:46,148
information<font color="#CCCCCC"> thereafter I then</font><font color="#E5E5E5"> and we're</font>

481
00:19:45,053 --> 00:19:51,053
going to<font color="#E5E5E5"> print out on the</font><font color="#CCCCCC"> screen five</font>

482
00:19:47,048 --> 00:19:52,121
times six<font color="#E5E5E5"> is</font><font color="#CCCCCC"> equal to 30 okay</font><font color="#E5E5E5"> but we are</font>

483
00:19:51,053 --> 00:19:54,115
going<font color="#E5E5E5"> to allow them to</font><font color="#CCCCCC"> use addition</font>

484
00:19:53,021 --> 00:19:57,098
subtraction multiplication<font color="#E5E5E5"> or division</font>

485
00:19:55,015 --> 00:20:00,044
<font color="#CCCCCC">whenever they</font><font color="#E5E5E5"> are providing that</font>

486
00:19:57,098 --> 00:20:01,154
<font color="#CCCCCC">information to us so here we are</font><font color="#E5E5E5"> let's</font>

487
00:20:00,044 --> 00:20:03,110
comment<font color="#E5E5E5"> that out so it doesn't mess</font>

488
00:20:02,054 --> 00:20:06,071
anything up and<font color="#E5E5E5"> then we'll walk through</font>

489
00:20:04,001 --> 00:20:12,067
<font color="#CCCCCC">exactly what we need to do here so we</font>

490
00:20:06,071 --> 00:20:17,123
want<font color="#E5E5E5"> to store the user</font><font color="#CCCCCC"> input</font><font color="#E5E5E5"> of two</font>

491
00:20:12,076 --> 00:20:19,154
numbers and the operator<font color="#E5E5E5"> of choice and</font>

492
00:20:18,023 --> 00:20:26,060
then what do<font color="#E5E5E5"> we want to do well we need</font>

493
00:20:20,054 --> 00:20:28,097
<font color="#CCCCCC">to convert the strings</font><font color="#E5E5E5"> into integers</font>

494
00:20:26,006 --> 00:20:30,011
<font color="#E5E5E5">just the numbers though we're not going</font>

495
00:20:28,097 --> 00:20:31,112
<font color="#E5E5E5">to convert the operator that</font><font color="#CCCCCC"> they're</font>

496
00:20:30,065 --> 00:20:33,119
going<font color="#E5E5E5"> to be using</font><font color="#CCCCCC"> then we're going to</font>

497
00:20:32,012 --> 00:20:36,014
<font color="#E5E5E5">use a fancy tool remember I said before</font>

498
00:20:34,019 --> 00:20:38,066
every programming<font color="#E5E5E5"> language</font><font color="#CCCCCC"> is</font><font color="#E5E5E5"> going to</font>

499
00:20:36,014 --> 00:20:41,057
provide<font color="#CCCCCC"> the ability to perform different</font>

500
00:20:38,066 --> 00:20:43,118
<font color="#E5E5E5">operations depending upon conditions so</font>

501
00:20:41,057 --> 00:20:49,057
what we need<font color="#E5E5E5"> to do here is we need to</font>

502
00:20:44,018 --> 00:20:54,023
say if they enter<font color="#E5E5E5"> plus then we need to</font>

503
00:20:49,057 --> 00:20:55,136
<font color="#E5E5E5">provide output based on addition and</font>

504
00:20:54,023 --> 00:20:57,104
then we're<font color="#E5E5E5"> going to also do exactly the</font>

505
00:20:56,036 --> 00:20:59,120
<font color="#CCCCCC">same thing with subtraction</font>

506
00:20:58,004 --> 00:21:01,085
<font color="#E5E5E5">multiplication and division</font><font color="#CCCCCC"> we'll just</font>

507
00:21:00,002 --> 00:21:04,043
keep that<font color="#E5E5E5"> there because we're smart we</font>

508
00:21:01,085 --> 00:21:06,107
don't need<font color="#E5E5E5"> to type out all that so then</font>

509
00:21:04,061 --> 00:21:08,102
after<font color="#CCCCCC"> we have that basically depending</font>

510
00:21:07,007 --> 00:21:10,055
upon<font color="#E5E5E5"> whatever the condition is we are</font>

511
00:21:09,002 --> 00:21:14,057
then<font color="#CCCCCC"> going to</font><font color="#E5E5E5"> come in here</font>

512
00:21:10,055 --> 00:21:15,062
and we are going<font color="#CCCCCC"> to</font><font color="#E5E5E5"> print the results</font>

513
00:21:14,057 --> 00:21:17,084
and then<font color="#E5E5E5"> our program is going to end</font>

514
00:21:16,025 --> 00:21:18,074
<font color="#E5E5E5">because we don't really need to do</font>

515
00:21:17,084 --> 00:21:21,086
<font color="#CCCCCC">anything else</font>

516
00:21:18,074 --> 00:21:24,095
<font color="#CCCCCC">alright</font><font color="#E5E5E5"> so store the user input of two</font>

517
00:21:21,086 --> 00:21:26,132
numbers and the operator<font color="#E5E5E5"> also</font><font color="#CCCCCC"> feel free</font>

518
00:21:24,095 --> 00:21:28,187
to pause the video<font color="#CCCCCC"> anytime you would</font>

519
00:21:27,032 --> 00:21:31,070
<font color="#CCCCCC">like to if you</font><font color="#E5E5E5"> want to go and see if you</font>

520
00:21:29,087 --> 00:21:32,141
can do<font color="#CCCCCC"> it the right</font><font color="#E5E5E5"> way</font><font color="#CCCCCC"> so what I'm</font>

521
00:21:31,007 --> 00:21:35,072
<font color="#E5E5E5">going to say is number one and an</font>

522
00:21:33,041 --> 00:21:38,129
operator<font color="#E5E5E5"> and number two and I want</font><font color="#CCCCCC"> to</font>

523
00:21:36,035 --> 00:21:43,070
receive the input for this<font color="#E5E5E5"> and I'm going</font>

524
00:21:39,029 --> 00:21:46,070
to type out<font color="#CCCCCC"> enter calculation and then I</font>

525
00:21:43,007 --> 00:21:48,071
will need to split those guys based off

526
00:21:46,007 --> 00:21:53,015
of<font color="#CCCCCC"> whitespace and then need to convert</font>

527
00:21:49,034 --> 00:21:56,108
number<font color="#E5E5E5"> one into an integer and to do so</font>

528
00:21:53,078 --> 00:21:58,121
we go and call our int function<font color="#CCCCCC"> then</font>

529
00:21:57,008 --> 00:22:01,103
we're going to do exactly<font color="#CCCCCC"> the same</font><font color="#E5E5E5"> thing</font>

530
00:21:59,021 --> 00:22:03,029
<font color="#E5E5E5">for number two and there's number two</font>

531
00:22:02,003 --> 00:22:06,014
<font color="#E5E5E5">and there's number two again we're not</font>

532
00:22:04,001 --> 00:22:08,003
<font color="#E5E5E5">doing it for rid of the operator</font><font color="#CCCCCC"> well</font>

533
00:22:06,014 --> 00:22:10,085
then that brings<font color="#E5E5E5"> us to if and how to</font>

534
00:22:08,021 --> 00:22:14,033
<font color="#E5E5E5">perform different operations based off</font>

535
00:22:10,085 --> 00:22:16,148
of conditions<font color="#E5E5E5"> so how we use if is pretty</font>

536
00:22:14,033 --> 00:22:21,041
easy<font color="#E5E5E5"> we just</font><font color="#CCCCCC"> type in if the operator</font>

537
00:22:17,048 --> 00:22:22,142
<font color="#E5E5E5">they entered in is equal to and remember</font>

538
00:22:21,041 --> 00:22:24,074
it wasn't converted<font color="#E5E5E5"> in anything so it's</font>

539
00:22:23,042 --> 00:22:26,123
still string so we<font color="#E5E5E5"> have to put it</font>

540
00:22:24,074 --> 00:22:29,120
<font color="#CCCCCC">between quotes we're going to say</font><font color="#E5E5E5"> if the</font>

541
00:22:27,023 --> 00:22:33,047
<font color="#CCCCCC">value for operator is equal to the plus</font>

542
00:22:30,002 --> 00:22:35,096
sign well then put in our little colon

543
00:22:33,047 --> 00:22:37,136
and then we need<font color="#CCCCCC"> to put some white space</font>

544
00:22:36,014 --> 00:22:40,046
inside<font color="#E5E5E5"> of</font><font color="#CCCCCC"> here that's the</font><font color="#E5E5E5"> way Python</font>

545
00:22:38,036 --> 00:22:41,045
<font color="#E5E5E5">works that that's the way the Python</font>

546
00:22:40,046 --> 00:22:43,055
knows that everything<font color="#E5E5E5"> underneath</font><font color="#CCCCCC"> here</font>

547
00:22:42,026 --> 00:22:46,049
that's indented<font color="#E5E5E5"> belongs to this</font>

548
00:22:44,036 --> 00:22:48,068
<font color="#E5E5E5">condition</font><font color="#CCCCCC"> if this condition comes true</font>

549
00:22:46,049 --> 00:22:49,130
<font color="#CCCCCC">this is what's going to</font><font color="#E5E5E5"> be executed and</font>

550
00:22:48,068 --> 00:22:52,112
what specifically<font color="#E5E5E5"> is</font><font color="#CCCCCC"> going to be</font>

551
00:22:50,003 --> 00:22:54,071
executed is our formatted data<font color="#E5E5E5"> so we're</font>

552
00:22:53,012 --> 00:22:56,087
going to go and put<font color="#CCCCCC"> our little curly</font>

553
00:22:54,098 --> 00:22:58,106
brackets inside of there again<font color="#CCCCCC"> more</font>

554
00:22:56,087 --> 00:22:59,096
curly brackets<font color="#E5E5E5"> and then we're going to</font>

555
00:22:59,006 --> 00:23:03,038
<font color="#E5E5E5">have another curly bracket and then</font>

556
00:23:00,077 --> 00:23:04,112
we're going<font color="#CCCCCC"> to say format and then this</font>

557
00:23:03,038 --> 00:23:08,042
is going to be kind<font color="#CCCCCC"> of neat we can go</font>

558
00:23:05,012 --> 00:23:09,080
<font color="#CCCCCC">numb</font><font color="#E5E5E5"> one inside</font><font color="#CCCCCC"> of there and numb</font><font color="#E5E5E5"> to</font>

559
00:23:08,042 --> 00:23:11,045
inside<font color="#E5E5E5"> of there but you're probably</font>

560
00:23:09,008 --> 00:23:12,011
saying why didn't you do the calculation

561
00:23:11,072 --> 00:23:15,131
for<font color="#E5E5E5"> this</font><font color="#CCCCCC"> some</font><font color="#E5E5E5"> or you can do the</font>

562
00:23:13,001 --> 00:23:17,090
calculation<font color="#E5E5E5"> directly inside of here so</font>

563
00:23:16,031 --> 00:23:19,040
that's pretty cool stuff<font color="#CCCCCC"> and that's</font><font color="#E5E5E5"> all</font>

564
00:23:17,099 --> 00:23:19,106
we want<font color="#E5E5E5"> to do because we know the</font>

565
00:23:19,004 --> 00:23:22,007
operator we know the number

566
00:23:20,069 --> 00:23:24,110
we don't want to do anything<font color="#E5E5E5"> else so we</font>

567
00:23:22,007 --> 00:23:27,098
want to<font color="#E5E5E5"> jump out of</font><font color="#CCCCCC"> that condition and</font>

568
00:23:25,001 --> 00:23:30,065
basically exit the program unless<font color="#CCCCCC"> the</font>

569
00:23:28,061 --> 00:23:34,067
value<font color="#E5E5E5"> for operator is not equal</font><font color="#CCCCCC"> to</font><font color="#E5E5E5"> plus</font>

570
00:23:30,074 --> 00:23:36,152
in<font color="#E5E5E5"> that situation we say else if but the</font>

571
00:23:34,067 --> 00:23:39,098
<font color="#E5E5E5">people</font><font color="#CCCCCC"> that designed Python were really</font>

572
00:23:37,052 --> 00:23:42,119
cool funny<font color="#E5E5E5"> people and they decided to</font>

573
00:23:39,098 --> 00:23:44,135
<font color="#CCCCCC">just abbreviate that to</font><font color="#E5E5E5"> LF exactly like</font>

574
00:23:43,019 --> 00:23:48,032
that<font color="#CCCCCC"> so now we're going to say operator</font>

575
00:23:45,035 --> 00:23:50,072
is equal<font color="#CCCCCC"> to and here we're going</font><font color="#E5E5E5"> to say</font>

576
00:23:48,032 --> 00:23:52,094
-<font color="#E5E5E5"> and we're going to put our little</font>

577
00:23:50,072 --> 00:23:54,095
colon inside of there again<font color="#CCCCCC"> and in this</font>

578
00:23:52,094 --> 00:23:56,138
<font color="#CCCCCC">situation we're just going to</font><font color="#E5E5E5"> do a</font>

579
00:23:54,095 --> 00:23:58,118
<font color="#E5E5E5">subtraction we want to tab in there</font>

580
00:23:57,038 --> 00:24:00,104
<font color="#E5E5E5">print this right here throw in our</font>

581
00:23:59,018 --> 00:24:02,117
subtraction<font color="#E5E5E5"> right there throw in our</font>

582
00:24:01,004 --> 00:24:05,021
<font color="#E5E5E5">subtraction right here and</font><font color="#CCCCCC"> there we're</font>

583
00:24:03,017 --> 00:24:07,064
<font color="#E5E5E5">ready to go and now we need to check the</font>

584
00:24:05,021 --> 00:24:09,089
<font color="#E5E5E5">rest so we'll do an else if the other</font>

585
00:24:07,064 --> 00:24:11,069
two<font color="#CCCCCC"> conditions were not</font><font color="#E5E5E5"> true what are we</font>

586
00:24:09,089 --> 00:24:12,107
going to<font color="#E5E5E5"> do</font><font color="#CCCCCC"> throw that inside of there</font>

587
00:24:11,069 --> 00:24:14,072
<font color="#CCCCCC">we're going to check if this</font><font color="#E5E5E5"> was</font>

588
00:24:13,007 --> 00:24:16,055
multiplication<font color="#E5E5E5"> we're going to change</font>

589
00:24:14,072 --> 00:24:17,075
that to<font color="#E5E5E5"> multiplication and then we're</font>

590
00:24:16,055 --> 00:24:19,142
going<font color="#CCCCCC"> to</font><font color="#E5E5E5"> change that to</font><font color="#CCCCCC"> multiplication</font>

591
00:24:17,075 --> 00:24:21,149
<font color="#E5E5E5">and then we have another one</font><font color="#CCCCCC"> and in this</font>

592
00:24:20,042 --> 00:24:23,129
situation<font color="#CCCCCC"> that's going to be subtraction</font>

593
00:24:22,049 --> 00:24:25,082
<font color="#E5E5E5">or that's going to be division sorry</font>

594
00:24:24,029 --> 00:24:27,077
<font color="#E5E5E5">about</font><font color="#CCCCCC"> that and we're going to throw in</font>

595
00:24:25,082 --> 00:24:29,126
division and here we will do a division

596
00:24:27,077 --> 00:24:31,094
<font color="#CCCCCC">but</font><font color="#E5E5E5"> what if they didn't enter anything I</font>

597
00:24:30,026 --> 00:24:33,029
<font color="#CCCCCC">order</font><font color="#E5E5E5"> they entered something that wasn't</font>

598
00:24:31,094 --> 00:24:34,181
<font color="#CCCCCC">one of those</font><font color="#E5E5E5"> things well in that</font>

599
00:24:33,056 --> 00:24:37,112
situation<font color="#CCCCCC"> there is a Ketchel</font><font color="#E5E5E5"> and that</font>

600
00:24:35,081 --> 00:24:39,116
catch-all is known as else so in that

601
00:24:38,012 --> 00:24:41,015
situation<font color="#CCCCCC"> we're</font><font color="#E5E5E5"> going to come in and</font>

602
00:24:40,016 --> 00:24:45,019
we're going<font color="#CCCCCC"> to print a different message</font>

603
00:24:41,042 --> 00:24:49,067
that is<font color="#E5E5E5"> going to say use either plus</font>

604
00:24:45,046 --> 00:24:51,140
minus multiplication or division<font color="#CCCCCC"> next</font>

605
00:24:49,067 --> 00:24:54,089
<font color="#CCCCCC">time and there we are</font><font color="#E5E5E5"> and that</font><font color="#CCCCCC"> is all</font>

606
00:24:52,004 --> 00:24:56,102
that we need<font color="#E5E5E5"> to do here</font><font color="#CCCCCC"> so we're going</font>

607
00:24:54,089 --> 00:24:58,124
to<font color="#E5E5E5"> save that and we are going to run it</font>

608
00:24:57,038 --> 00:25:01,043
and they can come in here<font color="#CCCCCC"> and go enter</font>

609
00:24:59,024 --> 00:25:02,120
calculation look at me being silly I

610
00:25:01,043 --> 00:25:04,139
didn't come in<font color="#CCCCCC"> here and put a space in</font>

611
00:25:03,002 --> 00:25:07,019
<font color="#CCCCCC">there and your calculation let's save</font>

612
00:25:05,039 --> 00:25:09,095
that<font color="#E5E5E5"> let's run it again</font><font color="#CCCCCC"> enter</font>

613
00:25:07,037 --> 00:25:12,065
calculation<font color="#E5E5E5"> and we</font><font color="#CCCCCC"> can come in and say 5</font>

614
00:25:09,095 --> 00:25:14,126
<font color="#CCCCCC">plus 4</font><font color="#E5E5E5"> and it's going to automatically</font>

615
00:25:12,065 --> 00:25:18,116
perform at that<font color="#E5E5E5"> calculation for us we'll</font>

616
00:25:15,026 --> 00:25:20,108
also<font color="#E5E5E5"> be able to go</font><font color="#CCCCCC"> 5 times 4 get exactly</font>

617
00:25:19,016 --> 00:25:23,018
the<font color="#CCCCCC"> same results or well different</font>

618
00:25:21,008 --> 00:25:26,054
results<font color="#CCCCCC"> obviously</font><font color="#E5E5E5"> it's multiplication</font><font color="#CCCCCC"> or</font>

619
00:25:23,018 --> 00:25:28,052
we<font color="#E5E5E5"> can come in and</font><font color="#CCCCCC"> say 5</font><font color="#E5E5E5"> and then let's</font>

620
00:25:26,054 --> 00:25:29,063
<font color="#CCCCCC">think you maybe wanted</font><font color="#E5E5E5"> to use modulus</font>

621
00:25:28,052 --> 00:25:31,091
<font color="#E5E5E5">well our program doesn't accept</font><font color="#CCCCCC"> that</font><font color="#E5E5E5"> and</font>

622
00:25:30,044 --> 00:25:33,083
you can see that<font color="#E5E5E5"> we get</font>

623
00:25:31,091 --> 00:25:35,132
a little error message there in that

624
00:25:33,083 --> 00:25:38,102
<font color="#E5E5E5">situation it's also very important</font><font color="#CCCCCC"> to</font>

625
00:25:36,032 --> 00:25:41,066
know there<font color="#CCCCCC"> are different</font><font color="#E5E5E5"> ways</font><font color="#CCCCCC"> to perform</font>

626
00:25:39,002 --> 00:25:43,067
conditions<font color="#CCCCCC"> as you're going</font><font color="#E5E5E5"> to see as the</font>

627
00:25:41,066 --> 00:25:45,110
tutorial continues<font color="#E5E5E5"> you're also going to</font>

628
00:25:43,067 --> 00:25:48,104
be able to check if a value is<font color="#E5E5E5"> greater</font>

629
00:25:46,001 --> 00:25:52,028
than<font color="#E5E5E5"> less than greater than</font><font color="#CCCCCC"> or equal</font><font color="#E5E5E5"> to</font>

630
00:25:49,004 --> 00:25:53,087
less than<font color="#E5E5E5"> or</font><font color="#CCCCCC"> equal</font><font color="#E5E5E5"> to or not equal to</font>

631
00:25:52,037 --> 00:25:55,073
and that is weird

632
00:25:53,087 --> 00:25:57,173
but that<font color="#E5E5E5"> is the way you check if two</font>

633
00:25:55,073 --> 00:25:59,135
<font color="#E5E5E5">things are not</font><font color="#CCCCCC"> equal</font><font color="#E5E5E5"> to and</font><font color="#CCCCCC"> now what</font>

634
00:25:58,073 --> 00:26:01,166
we're going to do is we're<font color="#E5E5E5"> going to do</font>

635
00:26:00,035 --> 00:26:05,042
another example<font color="#CCCCCC"> and then you're going</font><font color="#E5E5E5"> to</font>

636
00:26:02,066 --> 00:26:06,119
get another program problem that you're

637
00:26:05,042 --> 00:26:08,138
<font color="#CCCCCC">going to</font><font color="#E5E5E5"> have to work through</font><font color="#CCCCCC"> in</font><font color="#E5E5E5"> this</font>

638
00:26:07,019 --> 00:26:12,038
example what we're basically<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to do</font>

639
00:26:09,038 --> 00:26:13,130
is decide if a birthday is important or

640
00:26:12,038 --> 00:26:15,131
<font color="#E5E5E5">not yes I know it's silly but whatever</font>

641
00:26:14,003 --> 00:26:19,045
<font color="#E5E5E5">what we're going to do is we're</font><font color="#CCCCCC"> going to</font>

642
00:26:16,031 --> 00:26:24,032
go<font color="#E5E5E5"> and say</font><font color="#CCCCCC"> something like we'll provide</font>

643
00:26:19,072 --> 00:26:25,130
different outputs<font color="#E5E5E5"> based on age and</font>

644
00:26:24,032 --> 00:26:28,073
there's<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to be different conditions</font>

645
00:26:26,003 --> 00:26:30,062
that<font color="#CCCCCC"> we have if the age is one through</font>

646
00:26:28,073 --> 00:26:32,084
<font color="#CCCCCC">eighteen while those are very important</font>

647
00:26:30,089 --> 00:26:34,145
so we're going<font color="#E5E5E5"> to print out on</font><font color="#CCCCCC"> the</font>

648
00:26:32,084 --> 00:26:37,106
<font color="#CCCCCC">screen that</font><font color="#E5E5E5"> they are important we are</font>

649
00:26:35,045 --> 00:26:40,082
then also<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to come in here</font><font color="#E5E5E5"> and in</font>

650
00:26:38,006 --> 00:26:44,087
some countries<font color="#CCCCCC"> if you are the age of</font><font color="#E5E5E5"> 21</font>

651
00:26:40,082 --> 00:26:46,160
or<font color="#E5E5E5"> 50 or you have an age that is greater</font>

652
00:26:44,087 --> 00:26:50,096
<font color="#E5E5E5">than 65 that is</font><font color="#CCCCCC"> also</font><font color="#E5E5E5"> considered</font>

653
00:26:47,006 --> 00:26:52,013
important and so we will act as if they

654
00:26:50,096 --> 00:26:55,127
are important<font color="#E5E5E5"> and then finally all the</font>

655
00:26:53,003 --> 00:26:59,005
other<font color="#E5E5E5"> poor people</font><font color="#CCCCCC"> myself included</font><font color="#E5E5E5"> we're</font>

656
00:26:56,027 --> 00:27:01,106
going to say that their birthday<font color="#E5E5E5"> is not</font>

657
00:26:59,032 --> 00:27:03,077
important<font color="#E5E5E5"> I'm sorry about that but</font>

658
00:27:02,006 --> 00:27:06,023
<font color="#E5E5E5">that's just what I came up</font><font color="#CCCCCC"> with</font><font color="#E5E5E5"> for an</font>

659
00:27:03,077 --> 00:27:07,139
example<font color="#E5E5E5"> to mainly show you how to use</font>

660
00:27:06,023 --> 00:27:09,119
logical<font color="#E5E5E5"> operators and you're going to</font>

661
00:27:08,039 --> 00:27:12,041
see<font color="#E5E5E5"> more of</font><font color="#CCCCCC"> those here in</font><font color="#E5E5E5"> a second so</font>

662
00:27:10,019 --> 00:27:13,067
basically what we want<font color="#E5E5E5"> to do here is I'm</font>

663
00:27:12,059 --> 00:27:15,092
going to<font color="#E5E5E5"> show you a new way</font><font color="#CCCCCC"> to</font>

664
00:27:13,067 --> 00:27:18,083
automatically<font color="#E5E5E5"> convert the string that</font><font color="#CCCCCC"> we</font>

665
00:27:15,092 --> 00:27:20,186
get from input into an integer but<font color="#E5E5E5"> what</font>

666
00:27:18,083 --> 00:27:25,130
we want to do is we want<font color="#CCCCCC"> to receive</font><font color="#E5E5E5"> age</font>

667
00:27:21,086 --> 00:27:28,094
<font color="#E5E5E5">and store in a variable</font><font color="#CCCCCC"> called age and</font>

668
00:27:26,003 --> 00:27:30,065
then after we do<font color="#CCCCCC"> that we</font><font color="#E5E5E5"> are going to</font>

669
00:27:28,094 --> 00:27:32,153
say we're<font color="#E5E5E5"> going to use an if statement</font>

670
00:27:30,092 --> 00:27:39,163
again and we're going to say if age is

671
00:27:33,053 --> 00:27:41,060
both greater than or<font color="#CCCCCC"> equal</font><font color="#E5E5E5"> to 1 and less</font>

672
00:27:40,063 --> 00:27:46,085
<font color="#CCCCCC">than</font>

673
00:27:42,023 --> 00:27:49,088
or equal to 18 we want to print the

674
00:27:46,085 --> 00:27:50,132
important things so important<font color="#E5E5E5"> what else</font>

675
00:27:49,088 --> 00:27:53,170
do we want<font color="#E5E5E5"> to do here with our if</font>

676
00:27:51,032 --> 00:27:59,114
statements<font color="#E5E5E5"> well we want to say if age is</font>

677
00:27:54,007 --> 00:28:03,053
either<font color="#CCCCCC"> 21</font><font color="#E5E5E5"> or 50 then it's going</font><font color="#CCCCCC"> to be</font>

678
00:28:00,014 --> 00:28:06,017
important<font color="#E5E5E5"> also</font><font color="#CCCCCC"> and then we can also</font><font color="#E5E5E5"> them</font>

679
00:28:04,016 --> 00:28:07,019
doing<font color="#CCCCCC"> this</font><font color="#E5E5E5"> mainly separately just</font><font color="#CCCCCC"> so I</font>

680
00:28:06,017 --> 00:28:11,018
can<font color="#CCCCCC"> show you something else that's neat</font>

681
00:28:07,046 --> 00:28:16,103
<font color="#E5E5E5">we can say that we want</font><font color="#CCCCCC"> to check</font><font color="#E5E5E5"> if age</font>

682
00:28:11,027 --> 00:28:20,039
is less than<font color="#E5E5E5"> 65 and then we're going to</font>

683
00:28:17,003 --> 00:28:22,082
<font color="#E5E5E5">use</font><font color="#CCCCCC"> a nifty tool to convert true to</font>

684
00:28:20,039 --> 00:28:25,136
false<font color="#E5E5E5"> all right and you're going to see</font>

685
00:28:22,082 --> 00:28:27,083
that and<font color="#E5E5E5"> vice versa</font><font color="#CCCCCC"> that tool you're</font>

686
00:28:26,036 --> 00:28:29,048
<font color="#CCCCCC">going</font><font color="#E5E5E5"> to see in a second and that's it</font>

687
00:28:27,092 --> 00:28:30,179
and of<font color="#E5E5E5"> course these are all going</font><font color="#CCCCCC"> to</font>

688
00:28:29,048 --> 00:28:33,086
print the message important important

689
00:28:31,079 --> 00:28:35,170
and then<font color="#CCCCCC"> we're also going to</font><font color="#E5E5E5"> have</font>

690
00:28:33,086 --> 00:28:38,153
<font color="#E5E5E5">another thing that's going to say</font><font color="#CCCCCC"> not</font>

691
00:28:36,007 --> 00:28:41,096
important<font color="#E5E5E5"> for everybody else and that's</font>

692
00:28:39,053 --> 00:28:44,102
going<font color="#E5E5E5"> to be our else default so we</font><font color="#CCCCCC"> want</font>

693
00:28:42,059 --> 00:28:47,084
to receive the age and we want to store

694
00:28:45,002 --> 00:28:50,050
it well we are<font color="#E5E5E5"> going to call age this</font>

695
00:28:47,084 --> 00:28:52,175
time<font color="#E5E5E5"> like I said if you want to</font>

696
00:28:50,005 --> 00:28:56,006
automatically<font color="#CCCCCC"> convert the string</font><font color="#E5E5E5"> that</font>

697
00:28:53,075 --> 00:28:57,104
they input into an integer<font color="#E5E5E5"> you can use</font>

698
00:28:56,051 --> 00:28:59,120
eval you can do a whole<font color="#CCCCCC"> bunch of</font><font color="#E5E5E5"> things</font>

699
00:28:58,004 --> 00:29:02,051
with eval but<font color="#E5E5E5"> with this you</font><font color="#CCCCCC"> just refer</font>

700
00:29:00,002 --> 00:29:04,085
<font color="#CCCCCC">to it as evaluate it's going to allow</font>

701
00:29:02,051 --> 00:29:07,097
you to be<font color="#CCCCCC"> able to automatically convert</font>

702
00:29:05,003 --> 00:29:10,028
strings into integers in this situation

703
00:29:07,097 --> 00:29:10,151
<font color="#E5E5E5">so that's eval and it's pretty cool and</font>

704
00:29:10,028 --> 00:29:13,109
you're going to see it do even cooler

705
00:29:11,051 --> 00:29:15,095
things later on<font color="#E5E5E5"> we are then going</font><font color="#CCCCCC"> to use</font>

706
00:29:14,009 --> 00:29:18,026
what are called logical operators and

707
00:29:15,095 --> 00:29:19,160
<font color="#CCCCCC">they allow you</font><font color="#E5E5E5"> to stack the conditional</font>

708
00:29:18,026 --> 00:29:21,080
operators like the equals to not equals

709
00:29:20,006 --> 00:29:23,024
to greater than<font color="#CCCCCC"> and greater</font><font color="#E5E5E5"> than or</font>

710
00:29:21,008 --> 00:29:27,023
<font color="#CCCCCC">equal</font><font color="#E5E5E5"> to and all those guys you're going</font>

711
00:29:23,078 --> 00:29:28,087
to have and<font color="#E5E5E5"> that is one of what are</font>

712
00:29:27,095 --> 00:29:34,102
<font color="#E5E5E5">called</font><font color="#CCCCCC"> the logical operators</font><font color="#E5E5E5"> and</font>

713
00:29:29,068 --> 00:29:38,129
basically<font color="#CCCCCC"> if both</font><font color="#E5E5E5"> conditions are true it</font>

714
00:29:35,065 --> 00:29:43,114
returns true<font color="#E5E5E5"> you're also going</font><font color="#CCCCCC"> to have</font>

715
00:29:39,029 --> 00:29:47,114
or and with or if either<font color="#E5E5E5"> condition is</font>

716
00:29:44,014 --> 00:29:50,090
true then you<font color="#CCCCCC"> get true as a result and</font>

717
00:29:48,014 --> 00:29:54,032
then finally you're going<font color="#CCCCCC"> to have nots</font>

718
00:29:50,009 --> 00:29:54,060
and basically<font color="#CCCCCC"> naught is going to</font><font color="#E5E5E5"> convert</font>

719
00:29:54,032 --> 00:29:59,037
a

720
00:29:55,041 --> 00:30:00,117
true condition into<font color="#CCCCCC"> a false so</font><font color="#E5E5E5"> if you</font>

721
00:29:59,082 --> 00:30:01,146
give it false it's going to return true

722
00:30:01,017 --> 00:30:04,083
<font color="#E5E5E5">if you give it true it's going to return</font>

723
00:30:02,046 --> 00:30:06,120
false<font color="#CCCCCC"> that's</font><font color="#E5E5E5"> what it does</font><font color="#CCCCCC"> all right so</font>

724
00:30:04,083 --> 00:30:08,139
we received<font color="#E5E5E5"> our age here and now let's</font>

725
00:30:07,002 --> 00:30:11,040
get down here and let's start using<font color="#E5E5E5"> the</font>

726
00:30:09,039 --> 00:30:12,048
logical and conditional operators that<font color="#CCCCCC"> I</font>

727
00:30:11,058 --> 00:30:14,064
talked about<font color="#E5E5E5"> already</font><font color="#CCCCCC"> so here</font><font color="#E5E5E5"> we are</font>

728
00:30:13,029 --> 00:30:18,057
<font color="#E5E5E5">going to convert this we're</font><font color="#CCCCCC"> going to say</font>

729
00:30:15,018 --> 00:30:20,037
if age we're comparing two conditions

730
00:30:18,057 --> 00:30:21,081
here so throw those little parentheses

731
00:30:20,037 --> 00:30:23,094
around<font color="#E5E5E5"> there to keep everything neat if</font>

732
00:30:21,081 --> 00:30:25,095
the age is<font color="#CCCCCC"> greater than or equal to one</font>

733
00:30:23,094 --> 00:30:29,109
<font color="#E5E5E5">then we want to</font><font color="#CCCCCC"> use the logical operator</font>

734
00:30:25,095 --> 00:30:32,190
<font color="#E5E5E5">and we want to say if the age is less</font>

735
00:30:30,009 --> 00:30:36,066
than<font color="#CCCCCC"> or equal</font><font color="#E5E5E5"> to 18 in that situation</font>

736
00:30:33,009 --> 00:30:37,104
you<font color="#CCCCCC"> are important</font><font color="#E5E5E5"> so we're going to tell</font>

737
00:30:36,066 --> 00:30:41,082
the whole<font color="#CCCCCC"> world that</font><font color="#E5E5E5"> this</font><font color="#CCCCCC"> is an</font>

738
00:30:38,085 --> 00:30:43,173
important<font color="#E5E5E5"> birthday then we're going to</font>

739
00:30:41,082 --> 00:30:46,176
come<font color="#E5E5E5"> down here and we're</font><font color="#CCCCCC"> going to say LF</font>

740
00:30:44,073 --> 00:30:49,092
because this is going<font color="#CCCCCC"> to be a different</font>

741
00:30:47,076 --> 00:30:55,131
condition<font color="#CCCCCC"> and we're going</font><font color="#E5E5E5"> to again say</font>

742
00:30:49,092 --> 00:30:57,096
age is equal<font color="#CCCCCC"> to 21</font><font color="#E5E5E5"> or age is equal to 50</font>

743
00:30:56,031 --> 00:31:00,042
<font color="#E5E5E5">so that's going to cover either one</font><font color="#CCCCCC"> of</font>

744
00:30:58,032 --> 00:31:02,118
<font color="#E5E5E5">those guys and that's why that's good</font>

745
00:31:00,042 --> 00:31:05,046
<font color="#E5E5E5">and once again you</font><font color="#CCCCCC"> are deemed</font><font color="#E5E5E5"> an</font>

746
00:31:03,018 --> 00:31:08,019
important person or a<font color="#E5E5E5"> person that has an</font>

747
00:31:05,082 --> 00:31:09,120
important birthday<font color="#E5E5E5"> so we'll throw that</font>

748
00:31:08,019 --> 00:31:12,045
<font color="#CCCCCC">in there then what we're going to do is</font>

749
00:31:10,002 --> 00:31:15,024
the snazzy<font color="#CCCCCC"> little thing in which we are</font>

750
00:31:12,045 --> 00:31:16,110
<font color="#E5E5E5">going to convert in this situation what</font>

751
00:31:15,042 --> 00:31:18,042
<font color="#E5E5E5">you would</font><font color="#CCCCCC"> normally do here</font><font color="#E5E5E5"> I'm just like</font>

752
00:31:17,001 --> 00:31:21,006
I said<font color="#CCCCCC"> I'm looking</font><font color="#E5E5E5"> for</font><font color="#CCCCCC"> a reason to do</font>

753
00:31:18,042 --> 00:31:24,087
this<font color="#E5E5E5"> else if I would normally do age is</font>

754
00:31:21,006 --> 00:31:26,028
greater<font color="#E5E5E5"> than 65 like that and then print</font>

755
00:31:24,087 --> 00:31:28,101
<font color="#E5E5E5">important birthday but what I'm going</font><font color="#CCCCCC"> to</font>

756
00:31:26,082 --> 00:31:31,110
do is I'm going<font color="#CCCCCC"> to change</font><font color="#E5E5E5"> this to</font><font color="#CCCCCC"> a less</font>

757
00:31:29,001 --> 00:31:34,002
<font color="#CCCCCC">than and then I'm going to throw not</font><font color="#E5E5E5"> in</font>

758
00:31:32,001 --> 00:31:35,082
<font color="#CCCCCC">front</font><font color="#E5E5E5"> of it and that is going to</font><font color="#CCCCCC"> allow</font>

759
00:31:34,002 --> 00:31:38,037
<font color="#CCCCCC">me to get the</font><font color="#E5E5E5"> opposite</font><font color="#CCCCCC"> and you're going</font>

760
00:31:35,091 --> 00:31:39,120
to see not being used<font color="#E5E5E5"> for things that</font>

761
00:31:38,037 --> 00:31:41,088
are<font color="#E5E5E5"> a little bit</font><font color="#CCCCCC"> more interesting and</font>

762
00:31:40,002 --> 00:31:43,044
useful than that<font color="#E5E5E5"> but I just</font><font color="#CCCCCC"> wanted</font><font color="#E5E5E5"> to</font>

763
00:31:41,088 --> 00:31:44,184
show you what<font color="#CCCCCC"> not does converts false as</font>

764
00:31:43,062 --> 00:31:47,121
in the true stars trues and falses<font color="#CCCCCC"> okay</font>

765
00:31:45,084 --> 00:31:50,160
<font color="#E5E5E5">and then finally</font><font color="#CCCCCC"> we get to</font><font color="#E5E5E5"> the end</font><font color="#CCCCCC"> here</font>

766
00:31:48,021 --> 00:31:53,088
and<font color="#CCCCCC"> we want to say else</font><font color="#E5E5E5"> and then we want</font>

767
00:31:51,006 --> 00:31:56,073
<font color="#E5E5E5">to make the whole world sad by saying</font>

768
00:31:53,088 --> 00:31:58,122
not important birthday<font color="#E5E5E5"> or let's be a</font>

769
00:31:57,027 --> 00:32:00,066
<font color="#CCCCCC">little</font><font color="#E5E5E5"> bit nice and</font><font color="#CCCCCC"> let's just say sorry</font>

770
00:31:59,022 --> 00:32:03,048
not

771
00:32:00,066 --> 00:32:04,155
important<font color="#CCCCCC"> okay</font><font color="#E5E5E5"> so at least we said sorry</font>

772
00:32:03,048 --> 00:32:07,131
<font color="#CCCCCC">there we go we saved it we're going</font><font color="#E5E5E5"> to</font>

773
00:32:05,055 --> 00:32:10,059
<font color="#E5E5E5">run it come down here to the</font><font color="#CCCCCC"> Aged area</font>

774
00:32:08,031 --> 00:32:12,060
<font color="#CCCCCC">and we're</font><font color="#E5E5E5"> going to enter something like</font>

775
00:32:10,059 --> 00:32:13,101
<font color="#CCCCCC">twelve</font><font color="#E5E5E5"> important birthday comes back</font>

776
00:32:12,006 --> 00:32:16,008
let's<font color="#E5E5E5"> run it again</font><font color="#CCCCCC"> now we're going</font><font color="#E5E5E5"> to</font>

777
00:32:14,001 --> 00:32:18,036
type<font color="#E5E5E5"> in</font><font color="#CCCCCC"> twenty opps sorry not important</font>

778
00:32:16,008 --> 00:32:20,046
<font color="#CCCCCC">then we're going to</font><font color="#E5E5E5"> run it</font><font color="#CCCCCC"> again and</font>

779
00:32:18,036 --> 00:32:23,049
we're going<font color="#E5E5E5"> to type in</font><font color="#CCCCCC"> 65</font><font color="#E5E5E5"> enter</font>

780
00:32:21,018 --> 00:32:25,040
important birthday and we can<font color="#E5E5E5"> continue</font>

781
00:32:23,049 --> 00:32:28,074
doing<font color="#E5E5E5"> this over and</font><font color="#CCCCCC"> over again until</font>

782
00:32:25,004 --> 00:32:30,033
infinity<font color="#CCCCCC"> and there you can</font><font color="#E5E5E5"> see exactly</font>

783
00:32:28,074 --> 00:32:32,130
how<font color="#E5E5E5"> that works how conditional operators</font>

784
00:32:30,069 --> 00:32:35,082
<font color="#E5E5E5">and logical operators work together to</font>

785
00:32:33,003 --> 00:32:38,094
allow you<font color="#E5E5E5"> to combine condition and now</font>

786
00:32:35,082 --> 00:32:40,170
it is time<font color="#CCCCCC"> for</font><font color="#E5E5E5"> a problem this problem is</font>

787
00:32:39,021 --> 00:32:43,068
going<font color="#CCCCCC"> to be basically a person is going</font>

788
00:32:41,007 --> 00:32:45,039
<font color="#CCCCCC">to enter their age</font><font color="#E5E5E5"> and then you are</font>

789
00:32:43,068 --> 00:32:47,139
going<font color="#CCCCCC"> to determine what grade they</font>

790
00:32:46,002 --> 00:32:53,055
should be in so if we think<font color="#E5E5E5"> about this</font>

791
00:32:48,039 --> 00:32:55,134
problem<font color="#CCCCCC"> if the age is</font><font color="#E5E5E5"> five you are going</font>

792
00:32:53,055 --> 00:32:59,112
to print out<font color="#CCCCCC"> that the person needs to go</font>

793
00:32:56,034 --> 00:33:01,041
to kindergarten and then what you're

794
00:33:00,012 --> 00:33:08,031
going<font color="#CCCCCC"> to do is you're</font><font color="#E5E5E5"> going to say ages</font>

795
00:33:02,004 --> 00:33:12,087
<font color="#E5E5E5">6 through 17 in that situation goes to</font>

796
00:33:08,031 --> 00:33:14,034
grades<font color="#CCCCCC"> 1 through</font><font color="#E5E5E5"> 12 and you should be</font>

797
00:33:12,087 --> 00:33:16,095
able<font color="#E5E5E5"> to handle those with one condition</font>

798
00:33:14,061 --> 00:33:23,061
<font color="#CCCCCC">I'll have a whole bunch of them and then</font>

799
00:33:16,095 --> 00:33:24,177
if age is<font color="#E5E5E5"> greater than 17 say go to</font>

800
00:33:23,061 --> 00:33:26,118
college and<font color="#E5E5E5"> then there's going to be</font>

801
00:33:25,077 --> 00:33:27,159
another condition you're going to have

802
00:33:27,018 --> 00:33:30,093
to handle which I'm going<font color="#E5E5E5"> to let it</font><font color="#CCCCCC"> to</font>

803
00:33:28,059 --> 00:33:34,100
you to figure<font color="#E5E5E5"> that one</font><font color="#CCCCCC"> out and</font><font color="#E5E5E5"> basically</font>

804
00:33:30,093 --> 00:33:38,189
your goal<font color="#E5E5E5"> in this situation is to</font><font color="#CCCCCC"> try to</font>

805
00:33:35,000 --> 00:33:43,026
<font color="#E5E5E5">complete this</font><font color="#CCCCCC"> program</font><font color="#E5E5E5"> with</font><font color="#CCCCCC"> 10 or less</font>

806
00:33:39,089 --> 00:33:44,145
lines<font color="#CCCCCC"> so there you</font><font color="#E5E5E5"> go</font><font color="#CCCCCC"> pause the video</font>

807
00:33:43,026 --> 00:33:46,101
refer to your cheat sheet<font color="#CCCCCC"> and see if you</font>

808
00:33:45,045 --> 00:33:50,046
can solve<font color="#E5E5E5"> this little problem we got</font>

809
00:33:47,001 --> 00:33:52,038
<font color="#E5E5E5">here</font><font color="#CCCCCC"> alright</font><font color="#E5E5E5"> so we are</font><font color="#CCCCCC"> back again what</font>

810
00:33:50,055 --> 00:33:56,055
are we going<font color="#E5E5E5"> to do we're</font><font color="#CCCCCC"> going to ask</font>

811
00:33:52,038 --> 00:33:59,040
for the age<font color="#E5E5E5"> and then we're going</font><font color="#CCCCCC"> to</font>

812
00:33:56,055 --> 00:34:00,066
handle<font color="#CCCCCC"> this is</font><font color="#E5E5E5"> the one that I told</font><font color="#CCCCCC"> you</font>

813
00:33:59,004 --> 00:34:04,020
<font color="#E5E5E5">you're going to have to find on your</font><font color="#CCCCCC"> own</font>

814
00:34:00,066 --> 00:34:06,075
<font color="#CCCCCC">if age is less than five we don't want</font>

815
00:34:04,056 --> 00:34:09,085
any toddlers going to school<font color="#E5E5E5"> we are then</font>

816
00:34:06,075 --> 00:34:13,087
also special output

817
00:34:09,085 --> 00:34:15,094
just for age<font color="#E5E5E5"> five being the kindergarten</font>

818
00:34:13,087 --> 00:34:18,184
thing that we had there<font color="#CCCCCC"> before and here</font>

819
00:34:16,075 --> 00:34:26,167
what we're going<font color="#CCCCCC"> to do is since a number</font>

820
00:34:19,084 --> 00:34:31,168
<font color="#E5E5E5">is the result for ages 6 through 17 we</font>

821
00:34:27,067 --> 00:34:35,158
can check them all with<font color="#E5E5E5"> one condition</font>

822
00:34:32,068 --> 00:34:37,141
<font color="#CCCCCC">okay</font><font color="#E5E5E5"> may not</font><font color="#CCCCCC"> I may have</font><font color="#E5E5E5"> got that one</font><font color="#CCCCCC"> it</font>

823
00:34:36,058 --> 00:34:40,093
doesn't<font color="#CCCCCC"> really</font><font color="#E5E5E5"> matter</font><font color="#CCCCCC"> and then what</font>

824
00:34:38,041 --> 00:34:42,100
we're<font color="#CCCCCC"> going to do is handle everyone</font>

825
00:34:40,093 --> 00:34:44,107
<font color="#E5E5E5">else so we're going to come in here and</font>

826
00:34:43,000 --> 00:34:48,013
I'm<font color="#CCCCCC"> wondering</font><font color="#E5E5E5"> if</font><font color="#CCCCCC"> maybe whenever</font><font color="#E5E5E5"> you were</font>

827
00:34:45,007 --> 00:34:49,081
asking for<font color="#CCCCCC"> the age if you use eval you</font>

828
00:34:48,013 --> 00:34:51,040
remember<font color="#E5E5E5"> to</font><font color="#CCCCCC"> eval no problem if he</font>

829
00:34:49,081 --> 00:34:53,143
doesn't then we're going to<font color="#E5E5E5"> come in and</font>

830
00:34:51,004 --> 00:34:55,069
we're going<font color="#CCCCCC"> to say enter age and in this</font>

831
00:34:54,043 --> 00:34:57,043
<font color="#CCCCCC">situation I'm</font><font color="#E5E5E5"> going to remember to put</font><font color="#CCCCCC"> a</font>

832
00:34:56,005 --> 00:34:58,084
space<font color="#E5E5E5"> inside of there</font>

833
00:34:57,043 --> 00:35:01,066
then we come down<font color="#CCCCCC"> here</font><font color="#E5E5E5"> and we're going</font>

834
00:34:58,084 --> 00:35:05,119
<font color="#E5E5E5">to handle if age is less</font><font color="#CCCCCC"> than</font><font color="#E5E5E5"> 5 so</font><font color="#CCCCCC"> if</font>

835
00:35:01,066 --> 00:35:08,098
age is less<font color="#E5E5E5"> than 5 we are</font><font color="#CCCCCC"> going to print</font>

836
00:35:06,019 --> 00:35:14,020
out<font color="#E5E5E5"> a</font><font color="#CCCCCC"> message and that message is going</font>

837
00:35:08,098 --> 00:35:16,162
to<font color="#E5E5E5"> be too young</font><font color="#CCCCCC"> for</font><font color="#E5E5E5"> school and then we</font>

838
00:35:14,002 --> 00:35:19,063
need to<font color="#CCCCCC"> come down</font><font color="#E5E5E5"> here and do LF and in</font>

839
00:35:17,062 --> 00:35:23,095
this situation<font color="#CCCCCC"> we're going</font><font color="#E5E5E5"> to say if age</font>

840
00:35:19,081 --> 00:35:25,144
is equal<font color="#CCCCCC"> to 5 we're going to</font><font color="#E5E5E5"> print on</font>

841
00:35:23,095 --> 00:35:29,134
<font color="#E5E5E5">another message and this message is</font>

842
00:35:26,044 --> 00:35:32,113
going<font color="#CCCCCC"> to</font><font color="#E5E5E5"> be go to kindergarten and then</font>

843
00:35:30,034 --> 00:35:35,041
we're<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to come</font><font color="#E5E5E5"> down here and go</font><font color="#CCCCCC"> LF</font>

844
00:35:33,013 --> 00:35:37,060
and in<font color="#CCCCCC"> this</font><font color="#E5E5E5"> situation we're going to use</font>

845
00:35:35,041 --> 00:35:39,100
a conditional<font color="#E5E5E5"> as well as a logical</font>

846
00:35:37,006 --> 00:35:43,030
<font color="#E5E5E5">operator we're going to say</font><font color="#CCCCCC"> LLL if age</font>

847
00:35:40,000 --> 00:35:47,029
is greater<font color="#E5E5E5"> than 5 number 5</font><font color="#CCCCCC"> is being</font>

848
00:35:43,084 --> 00:35:49,180
<font color="#CCCCCC">taken up with kindergarten and age is</font>

849
00:35:47,029 --> 00:35:53,122
less than<font color="#CCCCCC"> or equal</font><font color="#E5E5E5"> to 17 in that</font>

850
00:35:50,008 --> 00:35:54,085
situation<font color="#E5E5E5"> we're going to print out</font><font color="#CCCCCC"> well</font>

851
00:35:54,022 --> 00:35:57,073
what we're going to do<font color="#E5E5E5"> first do a</font>

852
00:35:55,057 --> 00:36:00,115
<font color="#CCCCCC">calculation we're going to say grade</font><font color="#E5E5E5"> is</font>

853
00:35:57,073 --> 00:36:02,074
equal to age minus 5<font color="#E5E5E5"> and if you didn't</font>

854
00:36:01,015 --> 00:36:03,093
<font color="#E5E5E5">get this don't worry</font><font color="#CCCCCC"> about it</font><font color="#E5E5E5"> you're</font>

855
00:36:02,074 --> 00:36:06,103
going<font color="#E5E5E5"> to get better and</font><font color="#CCCCCC"> better as you</font>

856
00:36:03,093 --> 00:36:08,095
<font color="#E5E5E5">see examples and how they work</font><font color="#CCCCCC"> so you're</font>

857
00:36:07,003 --> 00:36:11,052
going to<font color="#E5E5E5"> say go to throw in the curly</font>

858
00:36:09,013 --> 00:36:13,039
bracket grade

859
00:36:11,079 --> 00:36:15,144
then after this we are<font color="#CCCCCC"> going</font><font color="#E5E5E5"> to call</font><font color="#CCCCCC"> for</font>

860
00:36:13,039 --> 00:36:17,448
<font color="#E5E5E5">Matt throw in the right information</font><font color="#CCCCCC"> and</font>

861
00:36:15,729 --> 00:36:19,785
that's going to<font color="#E5E5E5"> be grade like that and</font>

862
00:36:17,799 --> 00:36:21,897
then otherwise we're going<font color="#E5E5E5"> to</font><font color="#CCCCCC"> come</font><font color="#E5E5E5"> down</font>

863
00:36:20,289 --> 00:36:25,660
here<font color="#E5E5E5"> and go else and we're going to</font>

864
00:36:22,779 --> 00:36:26,811
print<font color="#E5E5E5"> go to college and we're going to</font>

865
00:36:25,066 --> 00:36:30,915
save<font color="#E5E5E5"> it and we're going</font><font color="#CCCCCC"> to run it</font><font color="#E5E5E5"> and</font>

866
00:36:27,099 --> 00:36:33,171
enter age<font color="#E5E5E5"> let's type in 17 go to 12th</font>

867
00:36:31,509 --> 00:36:35,565
grade<font color="#CCCCCC"> lamp</font><font color="#E5E5E5"> great I should reword that</font>

868
00:36:33,819 --> 00:36:36,891
<font color="#CCCCCC">and said grade 12 whatever</font><font color="#E5E5E5"> I'm writing</font>

869
00:36:36,069 --> 00:36:40,134
these programs out<font color="#CCCCCC"> of my head that's why</font>

870
00:36:37,539 --> 00:36:42,606
I didn't<font color="#E5E5E5"> think of</font><font color="#CCCCCC"> that</font><font color="#E5E5E5"> type in</font><font color="#CCCCCC"> five</font><font color="#E5E5E5"> go</font>

871
00:36:40,719 --> 00:36:44,920
<font color="#E5E5E5">to kindergarten</font><font color="#CCCCCC"> run</font><font color="#E5E5E5"> again and here we</font>

872
00:36:43,209 --> 00:36:46,900
are<font color="#E5E5E5"> going to say</font><font color="#CCCCCC"> too</font>

873
00:36:44,092 --> 00:36:49,641
<font color="#E5E5E5">too young for school and running again</font>

874
00:36:46,009 --> 00:36:52,036
<font color="#CCCCCC">and type in</font><font color="#E5E5E5"> 65 and there you go</font><font color="#CCCCCC"> so there</font>

875
00:36:50,469 --> 00:36:55,557
<font color="#CCCCCC">you go</font><font color="#E5E5E5"> guys that is part one of my learn</font>

876
00:36:53,017 --> 00:36:57,040
to programming series and these<font color="#E5E5E5"> problems</font>

877
00:36:56,349 --> 00:36:58,374
are<font color="#CCCCCC"> going to get more</font><font color="#E5E5E5"> and</font><font color="#CCCCCC"> more</font>

878
00:36:57,004 --> 00:37:00,333
complicated<font color="#E5E5E5"> and you're going to learn</font>

879
00:36:58,599 --> 00:37:01,695
<font color="#E5E5E5">more and</font><font color="#CCCCCC"> more as the</font><font color="#E5E5E5"> tutorial continues</font>

880
00:37:00,729 --> 00:37:03,130
and this<font color="#E5E5E5"> is technically the end of the</font>

881
00:37:02,559 --> 00:37:04,630
tutorial

882
00:37:03,013 --> 00:37:06,972
but what I'm<font color="#E5E5E5"> going to do now is show</font><font color="#CCCCCC"> you</font>

883
00:37:04,063 --> 00:37:08,802
how<font color="#E5E5E5"> to install</font><font color="#CCCCCC"> pycharm on</font><font color="#E5E5E5"> windows as</font>

884
00:37:07,089 --> 00:37:11,140
<font color="#E5E5E5">well as Mac and if you don't want to</font>

885
00:37:09,369 --> 00:37:12,432
learn<font color="#E5E5E5"> about that you're free to leave</font>

886
00:37:11,014 --> 00:37:14,343
the video<font color="#CCCCCC"> otherwise I'm going</font><font color="#E5E5E5"> to jump</font>

887
00:37:12,999 --> 00:37:17,058
over<font color="#CCCCCC"> and show you real quickly</font><font color="#E5E5E5"> how to</font>

888
00:37:14,469 --> 00:37:19,473
<font color="#E5E5E5">install</font><font color="#CCCCCC"> pycharm ok so what we're going</font>

889
00:37:17,589 --> 00:37:22,390
<font color="#CCCCCC">to need to do here first off is get</font>

890
00:37:19,509 --> 00:37:23,520
<font color="#E5E5E5">python and this is for</font><font color="#CCCCCC"> windows what</font>

891
00:37:22,039 --> 00:37:26,178
we're going<font color="#CCCCCC"> to do is we're</font><font color="#E5E5E5"> going to go</font>

892
00:37:23,619 --> 00:37:27,717
to python.org<font color="#CCCCCC"> get it</font><font color="#E5E5E5"> forward slash</font>

893
00:37:26,529 --> 00:37:30,531
windows like that or you if you just<font color="#E5E5E5"> go</font>

894
00:37:28,599 --> 00:37:31,638
to python.org and click on downloads

895
00:37:30,549 --> 00:37:32,625
it's going to show you this guy right

896
00:37:31,989 --> 00:37:35,140
here<font color="#CCCCCC"> and then what you're</font><font color="#E5E5E5"> going to want</font>

897
00:37:33,309 --> 00:37:37,332
to do is click right<font color="#CCCCCC"> here</font><font color="#E5E5E5"> which</font><font color="#CCCCCC"> is</font>

898
00:37:35,014 --> 00:37:39,016
python 3.5 point<font color="#CCCCCC"> 1 if it's a bigger</font>

899
00:37:37,539 --> 00:37:40,581
<font color="#E5E5E5">number don't worry about it this</font>

900
00:37:39,016 --> 00:37:42,615
<font color="#CCCCCC">tutorial is no doubt going to work for</font>

901
00:37:40,959 --> 00:37:43,968
it<font color="#E5E5E5"> so click on</font><font color="#CCCCCC"> that you're going to</font><font color="#E5E5E5"> see</font>

902
00:37:42,759 --> 00:37:44,832
<font color="#E5E5E5">this page you're going to want to scroll</font>

903
00:37:44,049 --> 00:37:47,117
<font color="#CCCCCC">down your screen and you're going to</font>

904
00:37:45,489 --> 00:37:49,563
come<font color="#CCCCCC"> down here where it says windows x86</font>

905
00:37:47,729 --> 00:37:51,753
<font color="#E5E5E5">executable installer and click on that</font>

906
00:37:50,229 --> 00:37:53,310
<font color="#E5E5E5">after that downloads down here you're</font>

907
00:37:51,969 --> 00:37:55,023
going<font color="#CCCCCC"> to</font><font color="#E5E5E5"> get the option to run it</font><font color="#CCCCCC"> so run</font>

908
00:37:54,039 --> 00:37:57,430
<font color="#E5E5E5">it and then you're going to come</font><font color="#CCCCCC"> down</font>

909
00:37:55,509 --> 00:37:58,515
here and<font color="#E5E5E5"> make</font><font color="#CCCCCC"> sure that you click on</font>

910
00:37:57,043 --> 00:38:02,172
install launcher<font color="#E5E5E5"> for all users and</font>

911
00:37:59,109 --> 00:38:03,171
definitely add python 3.5 to path<font color="#E5E5E5"> after</font>

912
00:38:02,559 --> 00:38:05,640
you do that<font color="#E5E5E5"> you're</font><font color="#CCCCCC"> going to</font><font color="#E5E5E5"> click</font><font color="#CCCCCC"> on</font>

913
00:38:03,729 --> 00:38:08,410
install now<font color="#E5E5E5"> and that's going to load</font><font color="#CCCCCC"> up</font>

914
00:38:06,369 --> 00:38:09,465
and then<font color="#E5E5E5"> after it's done setup was</font>

915
00:38:08,041 --> 00:38:12,043
successful and you can close this<font color="#E5E5E5"> and</font>

916
00:38:10,329 --> 00:38:13,428
that was easy wasn't<font color="#CCCCCC"> it</font><font color="#E5E5E5"> now what we're</font>

917
00:38:12,043 --> 00:38:15,852
going<font color="#E5E5E5"> to do is we're going</font><font color="#CCCCCC"> to</font><font color="#E5E5E5"> install</font>

918
00:38:14,319 --> 00:38:18,130
pipe charm<font color="#CCCCCC"> make sure that windows is</font>

919
00:38:16,239 --> 00:38:19,314
circled right here we're<font color="#E5E5E5"> going to use</font>

920
00:38:18,013 --> 00:38:21,222
the<font color="#E5E5E5"> community</font><font color="#CCCCCC"> version which is awesome</font>

921
00:38:19,989 --> 00:38:23,650
<font color="#CCCCCC">and free and click</font>

922
00:38:21,339 --> 00:38:25,630
download once again<font color="#E5E5E5"> it's going to say</font>

923
00:38:23,065 --> 00:38:27,067
hey<font color="#E5E5E5"> it's downloaded let's click on run</font>

924
00:38:25,063 --> 00:38:29,052
<font color="#E5E5E5">and this guy is going to</font><font color="#CCCCCC"> open</font><font color="#E5E5E5"> up we're</font>

925
00:38:27,067 --> 00:38:30,121
<font color="#CCCCCC">going</font><font color="#E5E5E5"> to click on next</font><font color="#CCCCCC"> we're going</font><font color="#E5E5E5"> to</font>

926
00:38:29,619 --> 00:38:32,667
<font color="#E5E5E5">let</font><font color="#CCCCCC"> that</font><font color="#E5E5E5"> be - okay</font><font color="#CCCCCC"> and we're going to</font>

927
00:38:31,021 --> 00:38:34,069
click<font color="#E5E5E5"> on next</font><font color="#CCCCCC"> I'm going to</font><font color="#E5E5E5"> make sure</font>

928
00:38:33,099 --> 00:38:38,115
<font color="#E5E5E5">that you put a little check mark in here</font>

929
00:38:34,069 --> 00:38:39,070
next to the dot py<font color="#E5E5E5"> click on next</font><font color="#CCCCCC"> you can</font>

930
00:38:38,259 --> 00:38:42,270
leave everything be the same click on

931
00:38:39,007 --> 00:38:43,536
install and<font color="#E5E5E5"> it will install for you</font><font color="#CCCCCC"> and</font>

932
00:38:42,369 --> 00:38:46,450
after it's done you<font color="#CCCCCC"> can put</font><font color="#E5E5E5"> a check</font><font color="#CCCCCC"> mark</font>

933
00:38:44,229 --> 00:38:48,234
<font color="#E5E5E5">in here run</font><font color="#CCCCCC"> PyCharm Community Edition</font>

934
00:38:46,045 --> 00:38:49,096
<font color="#CCCCCC">and click on</font><font color="#E5E5E5"> finish</font>

935
00:38:48,279 --> 00:38:50,376
right down<font color="#E5E5E5"> here</font><font color="#CCCCCC"> more than likely you're</font>

936
00:38:49,096 --> 00:38:52,096
not<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to have a previous version of</font>

937
00:38:51,249 --> 00:38:55,660
<font color="#CCCCCC">Pi charms and put a check in</font><font color="#E5E5E5"> there and</font>

938
00:38:52,096 --> 00:38:56,505
click on OK and then<font color="#CCCCCC"> PyCharm is going to</font>

939
00:38:55,066 --> 00:38:59,445
open<font color="#CCCCCC"> up you can leave everything exactly</font>

940
00:38:57,369 --> 00:39:02,140
<font color="#CCCCCC">the way that</font><font color="#E5E5E5"> it is click on OK like that</font>

941
00:39:00,039 --> 00:39:05,410
<font color="#E5E5E5">and then you're going to click on</font><font color="#CCCCCC"> create</font>

942
00:39:02,014 --> 00:39:07,953
a new<font color="#E5E5E5"> project</font><font color="#CCCCCC"> I went and</font><font color="#E5E5E5"> defined my</font>

943
00:39:05,041 --> 00:39:08,910
location<font color="#E5E5E5"> as</font><font color="#CCCCCC"> Python code and then you're</font>

944
00:39:08,079 --> 00:39:12,150
going to<font color="#E5E5E5"> click</font><font color="#CCCCCC"> on this</font><font color="#E5E5E5"> little drop down</font>

945
00:39:09,279 --> 00:39:15,351
<font color="#E5E5E5">and make sure you are</font><font color="#CCCCCC"> using Python 3.5</font>

946
00:39:12,789 --> 00:39:17,844
and you're going to<font color="#E5E5E5"> click</font><font color="#CCCCCC"> on create</font><font color="#E5E5E5"> then</font>

947
00:39:15,999 --> 00:39:20,410
we're going to go and<font color="#E5E5E5"> create a new</font><font color="#CCCCCC"> file</font>

948
00:39:18,339 --> 00:39:23,430
and to do so you're going<font color="#E5E5E5"> to click</font><font color="#CCCCCC"> on</font>

949
00:39:20,041 --> 00:39:27,660
new and file and then I call this<font color="#CCCCCC"> Python</font>

950
00:39:24,249 --> 00:39:30,336
<font color="#CCCCCC">tut py click on</font><font color="#E5E5E5"> OK and then we're going</font>

951
00:39:28,029 --> 00:39:34,032
<font color="#CCCCCC">to verify that we're using python 3.5 so</font>

952
00:39:31,119 --> 00:39:37,150
just type in import sis and then on the

953
00:39:34,329 --> 00:39:39,700
next line<font color="#E5E5E5"> print sis dot version</font>

954
00:39:37,015 --> 00:39:41,874
underscore info like that and then you

955
00:39:39,007 --> 00:39:44,406
can<font color="#E5E5E5"> right click on the screen anywhere</font>

956
00:39:42,009 --> 00:39:47,034
<font color="#E5E5E5">and click on run</font><font color="#CCCCCC"> python</font><font color="#E5E5E5"> tucked and there</font>

957
00:39:45,099 --> 00:39:50,124
you go and you're going<font color="#CCCCCC"> to see major 3</font>

958
00:39:47,259 --> 00:39:52,305
and minor<font color="#E5E5E5"> 5 right like that and that is</font>

959
00:39:50,349 --> 00:39:54,393
<font color="#E5E5E5">going to</font><font color="#CCCCCC"> verify that</font><font color="#E5E5E5"> you're using python</font>

960
00:39:52,719 --> 00:39:55,794
3.5 and you're ready to<font color="#E5E5E5"> go and that's</font>

961
00:39:54,789 --> 00:39:57,807
all you<font color="#E5E5E5"> need to do</font><font color="#CCCCCC"> everything's set up</font>

962
00:39:56,469 --> 00:40:01,473
<font color="#CCCCCC">and now i'm going</font><font color="#E5E5E5"> to show you how to</font>

963
00:39:57,969 --> 00:40:04,022
<font color="#E5E5E5">install python on a macintosh so here</font>

964
00:40:01,509 --> 00:40:07,420
you go you're<font color="#E5E5E5"> going to go to python.org</font>

965
00:40:04,499 --> 00:40:08,598
<font color="#E5E5E5">/downloads to install from mac it's</font>

966
00:40:07,042 --> 00:40:10,090
going to say latest version for<font color="#CCCCCC"> mac</font><font color="#E5E5E5"> OS</font><font color="#CCCCCC"> x</font>

967
00:40:09,489 --> 00:40:13,960
<font color="#E5E5E5">and we're going to click on download</font>

968
00:40:10,009 --> 00:40:14,598
Python<font color="#E5E5E5"> 3.5 point 1 and don't worry if</font>

969
00:40:13,096 --> 00:40:16,005
it's a bigger<font color="#CCCCCC"> number it's more than</font>

970
00:40:15,489 --> 00:40:18,400
likely going<font color="#E5E5E5"> to work after it downloads</font>

971
00:40:16,869 --> 00:40:20,170
<font color="#CCCCCC">you're</font><font color="#E5E5E5"> going to come down here click on</font>

972
00:40:18,004 --> 00:40:22,009
<font color="#E5E5E5">this little downward facing arrow click</font>

973
00:40:20,017 --> 00:40:24,040
on open<font color="#E5E5E5"> and there it's going to open up</font>

974
00:40:22,009 --> 00:40:25,118
<font color="#CCCCCC">for you and now it's</font><font color="#E5E5E5"> time</font><font color="#CCCCCC"> to</font><font color="#E5E5E5"> install</font>

975
00:40:24,004 --> 00:40:28,030
python we're going to click on<font color="#E5E5E5"> continue</font>

976
00:40:26,009 --> 00:40:30,770
<font color="#CCCCCC">you're going to click on</font><font color="#E5E5E5"> continue</font><font color="#CCCCCC"> and</font>

977
00:40:28,066 --> 00:40:32,129
you're going<font color="#CCCCCC"> to click on continue and</font>

978
00:40:30,077 --> 00:40:34,121
to agree<font color="#CCCCCC"> to</font><font color="#E5E5E5"> that and you're going to</font>

979
00:40:33,029 --> 00:40:37,052
<font color="#CCCCCC">install</font><font color="#E5E5E5"> probably going to have to type</font>

980
00:40:35,021 --> 00:40:39,089
in your<font color="#CCCCCC"> password and install software</font>

981
00:40:37,052 --> 00:40:40,145
<font color="#E5E5E5">and it will take a little bit of time to</font>

982
00:40:39,089 --> 00:40:42,095
install and then it's going to say

983
00:40:41,045 --> 00:40:44,078
installation was successful<font color="#CCCCCC"> and</font>

984
00:40:42,095 --> 00:40:45,149
<font color="#E5E5E5">everything is awesome</font><font color="#CCCCCC"> and then we're</font>

985
00:40:44,078 --> 00:40:46,124
<font color="#E5E5E5">going to close that now it's time to get</font>

986
00:40:46,049 --> 00:40:49,051
<font color="#CCCCCC">PyCharm</font>

987
00:40:47,024 --> 00:40:53,087
and to get<font color="#CCCCCC"> pycharm you're going to go to</font>

988
00:40:49,051 --> 00:40:55,094
<font color="#CCCCCC">JetBrains</font><font color="#E5E5E5"> comm</font><font color="#CCCCCC"> /pi charm download and</font>

989
00:40:53,087 --> 00:40:56,168
you're going<font color="#E5E5E5"> to click</font><font color="#CCCCCC"> on community</font>

990
00:40:55,094 --> 00:40:58,136
<font color="#E5E5E5">download and it's going to download</font>

991
00:40:57,068 --> 00:41:01,076
you're going to click<font color="#E5E5E5"> on this little</font>

992
00:40:59,036 --> 00:41:03,101
arrow<font color="#E5E5E5"> right</font><font color="#CCCCCC"> here and then click on</font><font color="#E5E5E5"> open</font>

993
00:41:01,076 --> 00:41:04,154
and<font color="#CCCCCC"> then really simply you're going to</font>

994
00:41:04,001 --> 00:41:07,064
come<font color="#E5E5E5"> over here and grab this guy and</font>

995
00:41:05,054 --> 00:41:09,083
<font color="#E5E5E5">drag it into the</font><font color="#CCCCCC"> Applications folder</font>

996
00:41:07,064 --> 00:41:11,081
like you do all the time<font color="#E5E5E5"> and it will be</font>

997
00:41:09,083 --> 00:41:13,124
loaded<font color="#CCCCCC"> now you can go into the</font>

998
00:41:11,081 --> 00:41:16,130
Applications folder and<font color="#CCCCCC"> double-click on</font>

999
00:41:14,024 --> 00:41:18,065
<font color="#CCCCCC">PyCharm c e and PyCharm will open then</font>

1000
00:41:17,003 --> 00:41:19,081
you're<font color="#E5E5E5"> going</font><font color="#CCCCCC"> to come over here and</font>

1001
00:41:18,065 --> 00:41:21,116
you're<font color="#E5E5E5"> going to click on edit</font>

1002
00:41:20,008 --> 00:41:24,035
configurations click this guy<font color="#E5E5E5"> edit</font>

1003
00:41:22,016 --> 00:41:27,092
configurations<font color="#E5E5E5"> and then inside</font><font color="#CCCCCC"> of it</font>

1004
00:41:24,035 --> 00:41:30,119
<font color="#E5E5E5">you're going to name this</font><font color="#CCCCCC"> python</font><font color="#E5E5E5"> Tut dot</font>

1005
00:41:27,092 --> 00:41:32,120
py and then make sure that<font color="#E5E5E5"> you click on</font>

1006
00:41:31,019 --> 00:41:35,057
<font color="#E5E5E5">this</font><font color="#CCCCCC"> little guy and you select python</font>

1007
00:41:33,002 --> 00:41:37,007
3.5 point<font color="#CCCCCC"> 1</font><font color="#E5E5E5"> or whatever the new version</font>

1008
00:41:35,057 --> 00:41:38,141
is right<font color="#E5E5E5"> after that and then you're</font>

1009
00:41:37,007 --> 00:41:40,016
going to click<font color="#CCCCCC"> on ok and be able to</font>

1010
00:41:39,041 --> 00:41:44,054
start<font color="#E5E5E5"> writing some programs</font><font color="#CCCCCC"> so there</font><font color="#E5E5E5"> you</font>

1011
00:41:41,006 --> 00:41:46,070
go<font color="#CCCCCC"> guys that is a start of my learner's</font>

1012
00:41:44,054 --> 00:41:49,079
program with python tutorial<font color="#CCCCCC"> as well as</font>

1013
00:41:47,024 --> 00:41:51,113
how<font color="#E5E5E5"> to install</font><font color="#CCCCCC"> PyCharm and set up python</font>

1014
00:41:49,079 --> 00:41:54,101
on both windows as<font color="#E5E5E5"> well</font><font color="#CCCCCC"> as on macintosh</font>

1015
00:41:52,013 --> 00:41:56,030
please if anything confused you leave

1016
00:41:55,001 --> 00:42:00,019
your questions and<font color="#E5E5E5"> comments below</font>

1017
00:41:56,003 --> 00:41:59,092
<font color="#E5E5E5">otherwise till next time</font>


