text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
many we have conditionals in our
1,864.96
4.8
vocabulary already via which we can now
1,866.88
4.88
express that well let me pause here and
1,869.76
4.08
see if there's any questions now on how
1,871.76
4
we handled the error before with the
1,873.84
4.24
index error or how now we're just
1,875.76
5.12
proactively avoiding all index errors
1,878.08
5.52
all together by just checking first is
1,880.88
4.639
it too few is it too many or is it
1,883.6
4.72
exactly what we want oh yeah thank you
1,885.519
4.961
um so i was wondering you you touched
1,888.32
5.28
upon kind of using your full name um
1,890.48
5.84
could we could we then um
1,893.6
4.16
is there a way
1,896.32
4.16
going forwards that perhaps we
1,897.76
4.32
have people that want their full names
1,900.48
3.6
and want their just their first name
1,902.08
4.319
that we separate that into like oh this
1,904.08
4.719
person has full name this person has
1,906.399
4.64
just the one name
1,908.799
4.88
absolutely and allow me to
1,911.039
4.48
allow me to propose we come back to that
1,913.679
3.84
support for multiple names
1,915.519
3.681
but indeed we could do that and i should
1,917.519
4.561
know too though we can support full
1,919.2
5.199
names right now if i do this instead of
1,922.08
4.719
typing in david spacemailin which is
1,924.399
4.481
problematic because again by definition
1,926.799
5.521
of how argv works each word ends up in a
1,928.88
5.84
specific location in the list but if i
1,932.32
4.4
add quotes single quotes or double
1,934.72
4.559
quotes at the command line now python
1,936.72
4.4
will view this as two total things the
1,939.279
3.921
name of the file and this full name and
1,941.12
3.679
now when i hit enter i don't see the
1,943.2
3.92
quotes the whole thing is passed in as
1,944.799
4.321
my full name and if i want to adapt this
1,947.12
3.679
further for multiple people we'll be
1,949.12
3.84
able to do that as well other questions
1,950.799
5.441
now on this version with if elif else or
1,952.96
5.839
on accept before
1,956.24
4.96
i want to i want to ask you
1,958.799
5.201
can we use multiple else statement can
1,961.2
4.8
you use multiple else's statements no
1,964
4
else is the last catch-all statement
1,966
4.24
that you can have you can have multiple
1,968
5.039
l if statements in the middle but not
1,970.24
6.279
multiple elses
1,973.039
3.48
all right
1,976.799
2.48
all right well let's turn our attention
1,977.84
2.8
back now to this code and see if we
1,979.279
3.361
can't refine it a bit more by adding in
1,980.64
3.759
some additional functionality that we
1,982.64
4.24
get with modules like the sys module one
1,984.399
4.081
of the things i don't love about this
1,986.88
3.36
version of the code even though arguably
1,988.48
3.919
it is now correct
1,990.24
4.48
is that the essence of my program which
1,992.399
4.481
is just to print out the name tag is
1,994.72
4.559
kind of relegated to this else clause
1,996.88
5.2
and that's fine logically it's correct
1,999.279
5.12
but generally speaking there's something
2,002.08
4.4
nice about keeping all of your error
2,004.399
5.28
handling separate from the code that you
2,006.48
5.36
really care about having all of these
2,009.679
4.161
ifs lifts perhaps at the top of your
2,011.84
4.16
code that are checking to make sure that
2,013.84
4.24
all of the data is as expected but then
2,016
4.48
it would be nice if only for design's
2,018.08
4.88
sake not to sort of hide in this else
2,020.48
4.559
statement the actual code that you care
2,022.96
4.16
about i would prefer for instance to do
2,025.039
4.48
something logically like this i could
2,027.12
4.64
check for errors up top
2,029.519
4.961
and then down here print the name tags
2,031.76
4.08
it would be nice if those are sort of
2,034.48
3.84
distinct blocks of code all of which are
2,035.84
4.559
here left aligned but there's a problem
2,038.32
4.16
with what i've just done here
2,040.399
5.201
logically what bug did i just introduced
2,042.48
5.52
by getting rid of the else
2,045.6
5.2
and introducing line 10 on its own with
2,048
5.04
no indentation outside of the
2,050.8
3.76
conditional
2,053.04
3.44
what bug have i just introduced what
2,054.56
4.799
mistake to be clear
2,056.48
5.919
um name error ironically it's a name
2,059.359
5.601
error but not a name error exception
2,062.399
5.52
it's an error with my name but
2,064.96
5.439
i think you're frozen for me it's going
2,067.919
4.641
to raise an exception because even
2,070.399
3.921
though i'm checking the length of
2,072.56
4.319
sys.rgv up top and even though i'm
2,074.32
4.48
checking it again for being greater than
2,076.879
3.841
two not just less than two but greater
2,078.8
4.319
i'm still then blindly and incorrectly
2,080.72
4.56
assuming it's now going to exist so just
2,083.119
4.56
to be clear if i run python of name dot
2,085.28
4.799
pi and i don't type any arguments i've
2,087.679
4.72
got too few i think i'm going to see
2,090.079
4.721