text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
relatively simple syntax in python we
2,535.92
4.159
can use square brackets not just to go
2,538.319
3.841
to specific elements like bracket zero
2,540.079
4.641
or bracket one we can also get subsets
2,542.16
4.88
of the list slices of the list by doing
2,544.72
5.28
bracket something colon something where
2,547.04
4.64
each of those somethings is a number the
2,550
2.96
beginning or the end and they're
2,551.68
2.88
optional depending on whether you want
2,552.96
4.399
all of them or just some
2,554.56
5.6
any questions now on this version which
2,557.359
4.161
adds the loop
2,560.16
5.12
and these slices with that new syntax
2,561.52
6.079
can we slice starting from the end
2,565.28
5.12
of the argument argument vector
2,567.599
4.72
you can you can slice something from the
2,570.4
3.679
end of the argument vector and this
2,572.319
4.241
might uh this might blow one's mind a
2,574.079
5.441
little bit let me go ahead and do this
2,576.56
4.96
uh let's see let me go ahead and do
2,579.52
4.24
negative one at the end using a negative
2,581.52
4.4
number here and running the same command
2,583.76
4.319
we've just uninvited wrong shin from
2,585.92
4.48
receiving a name tag here so if you use
2,588.079
4.561
a negative number it has the effect of
2,590.4
4.16
counting to the uh in the other
2,592.64
4.479
direction from the end of the list a
2,594.56
4.16
good question there other questions now
2,597.119
3.361
on slices on
2,598.72
4.96
looping over sys.rgv
2,600.48
5.76
hi uh so i remember very early on uh
2,603.68
4.32
when we were talking about uh only
2,606.24
4.56
having two decimal places in uh in an um
2,608
5.2
float value um
2,610.8
3.36
does this
2,613.2
3.84
is is that in the same vein like um
2,614.16
6.64
because we use the the colon point two f
2,617.04
6.48
uh so that's is that the same thing then
2,620.8
5.279
uh why would the f be included then
2,623.52
4.88
in the point two f
2,626.079
4.161
as opposed to here when you just have
2,628.4
3.679
the numbers
2,630.24
3.839
a really good question and it's just the
2,632.079
4.24
short answer is that context matters so
2,634.079
4.561
there's only so many keyboard keys on
2,636.319
4.241
our keyboard and so we sometimes use the
2,638.64
3.84
same symbols for different things so
2,640.56
4.48
what you're alluding to is the format
2,642.48
4.639
code in in fstring for actually
2,645.04
4.48
formatting a number using a colon using
2,647.119
4.72
a period using a number using the letter
2,649.52
4.96
f and so forth and that is very specific
2,651.839
5.28
to the f string feature of python this
2,654.48
4.72
case has nothing to do with any of that
2,657.119
4.401
syntax per se this is just using a colon
2,659.2
4.24
in a different context to solve this
2,661.52
4
problem to implement a slice the authors
2,663.44
3.919
of python could have chosen another
2,665.52
3.599
symbol but honestly looking down at my
2,667.359
3.361
keyboard here we don't have that many to
2,669.119
3.441
choose from that are easy to type so
2,670.72
3.52
sometimes they have different meanings a
2,672.56
4.08
good question as well allow me to
2,674.24
4.96
propose now that we take things further
2,676.64
4.959
and move away from using only those
2,679.2
4.56
modules those libraries that python
2,681.599
4.561
comes with to talk about more generally
2,683.76
4.64
packages that exist one of the reasons
2,686.16
4.4
that python is so popular and powerful
2,688.4
3.84
these days is that there's a lot of
2,690.56
4.24
third-party libraries out there as well
2,692.24
5.04
otherwise known as packages strictly
2,694.8
6.08
speaking python itself has a term of art
2,697.28
6.559
called a package which is a module
2,700.88
4.719
essentially that's implemented in a
2,703.839
4.401
folder not just a file but a folder but
2,705.599
4.961
more generally a package is a
2,708.24
5.119
third-party library that you that i can
2,710.56
5.12
install on our own mac or pc or our
2,713.359
6.48
cloud server and gain access to even
2,715.68
4.159
and this is a website that is searchable
2,731.28
4
via the command line as well as via the
2,733.28
3.92
web that allows you to download and
2,735.28
4.559
install all sorts of packages even cs50
2,737.2
4.72
has some of its own packages
2,739.839
4.561
in services like these now there's a fun
2,741.92
3.84
one out there that's a throwback to a
2,744.4
2.8
command that's been around for years in
2,745.76
4.079
command line environments called cowsei
2,747.2
5.119
causee is a package in python that
2,749.839
5.041
allows you to have a cow say something
2,752.319
4.8
on your screen if curious to read up on
2,754.88
5.52
it its own documentation is on pipi.org
2,757.119
5.841
specifically at this url here but how do
2,760.4
4.88
you actually get the package into your
2,762.96
4.32
system well technically you could figure
2,765.28
4.4
out how to download the file and maybe
2,767.28
4.079
unzip it and put it into the right
2,769.68
4.159
location on your mac or pc but nowadays
2,771.359
4.641
a lot of languages python among them has
2,773.839
4.081