text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
be called
4,013.559
3.121
and python for you automatically is
4,014.68
4
going to pass into that method a
4,016.68
4.28
reference to the object that's trying to
4,018.68
5.04
be printed so that you the programmer
4,020.96
4.839
can do something like this here's an F
4,023.72
4.319
string with double quotes as usual I'm
4,025.799
4.081
going to use some curly braces and say
4,028.039
6.441
print out self. name from self. house so
4,029.88
6.64
there's nothing new in what I've just
4,034.48
4.92
done it's just an F string an F on the
4,036.52
4.759
beginning two double quotes a couple of
4,039.4
4.56
pairs of curly braces but because Auto
4,041.279
6.28
automatically this stir method gets past
4,043.96
5.76
self so to speak a reference to the
4,047.559
4.441
current object I can go inside of that
4,049.72
3.96
object and grab the name I can go inside
4,052
4.52
that object again and grab the house so
4,053.68
5.2
now when I go back to my terminal window
4,056.52
4.599
previously it just printed out a student
4,058.88
4.8
but now if I run python of student.
4,061.119
5.321
enter type in Harry type in Gryffindor
4,063.68
5.28
and one more time hit enter Harry is
4,066.44
5.159
again from Gryffindor but if I run this
4,068.96
4.92
yet again let's for instance do Drake
4,071.599
6.2
Draco is from Slytherin enter Draco is
4,073.88
6.159
from Slytherin now it's customized to
4,077.799
5.641
the specific object that we're trying to
4,080.039
8.32
print questions on this function here
4,083.44
8.72
this thunder stir method is there
4,088.359
6.121
anything else that the uncore uncore
4,092.16
5.119
stir method can do um the other question
4,094.48
4.08
is what's the difference between stir
4,097.279
3.56
and repper a good question so there are
4,098.56
5.4
many other methods that come with python
4,100.839
4.681
classes that start with underscore
4,103.96
2.839
underscore we're just scratching the
4,105.52
2.639
surface and we'll pretty much Focus
4,106.799
3.081
primarily on these but yes there are
4,108.159
3.241
many others and we'll see at least one
4,109.88
3.879
other in just a little bit there is an
4,111.4
4.72
among the others is indeed one called uh
4,113.759
4.841
repper which is a representation of the
4,116.12
4.76
Python object generally speaking the
4,118.6
5.84
underscore uncore rcore uncore method is
4,120.88
5.319
meant for developers eyes it typically
4,124.44
4
has more information than Harry from
4,126.199
4.48
Gryffindor it would also say what type
4,128.44
5
of object it is like a student capital S
4,130.679
4.48
whereas underscore uncore stir
4,133.44
3.52
underscore uncore is generally meant for
4,135.159
4.16
users uh the users of the program and
4,136.96
4.359
it's meant to be even more user friendly
4,139.319
4
but both of those can be overridden as
4,141.319
4.4
you see fit well let me propose now that
4,143.319
4.121
we pick up where we've left off on
4,145.719
3.52
student and just add even more
4,147.44
3.879
functionality but not just these special
4,149.239
4.361
methods like double underscore init and
4,151.319
4.281
double underscore stir like let's create
4,153.6
4.159
our own methods because there in lies
4,155.6
3.88
the real power and flexibility of
4,157.759
4
classes if you and I as the programmers
4,159.48
4.52
can invent new functionality that
4,161.759
4.52
specific to students for instance uh
4,164
4.48
students at Hogwarts over the time in in
4,166.279
4.361
school learn how to cast a certain type
4,168.48
4.319
of spell so when they say expecto
4,170.64
4.039
patronum something comes out of their
4,172.799
3.681
wand that typically resembles an animal
4,174.679
3.16
or something like that it's a special
4,176.48
2.759
spell that they have to practice and
4,177.839
4.121
practice so let's see if we can't store
4,179.239
4.44
not just a student's name and their
4,181.96
3.96
house but also their Patronis what
4,183.679
4.52
actually they conjure when using this
4,185.92
3.879
spell well let me go ahead and clear my
4,188.199
4.241
terminal window and in the top of my
4,189.799
6.041
code here in the in it method of student
4,192.44
5.52
let me go ahead and start expecting a
4,195.84
4.319
third argument in addition to self which
4,197.96
4.04
automatically gets passed in called
4,200.159
4.161
petronis and I'm not going to worry uh
4,202
4.92
for now on validating the petronis from
4,204.32
4.879
an official list of valid patronises or
4,206.92
4.4
petroni I'm instead going to go ahead
4,209.199
4.881
and just blindly assign it to self.
4,211.32
5.08
Patronis equals Patronis and we're going
4,214.08
4.32
to let the user type whatever they want
4,216.4
4
for now but I could certainly add more
4,218.4
4.12
error checking if I wanted to limit the
4,220.4
4.56
patronises to a specific list of them
4,222.52
5.04
here let me go ahead now and prompt the
4,224.96
5.4
user for this Patronis as by in my get
4,227.56
5.159
student method uh get student function
4,230.36
4.24
defining a variable called petronis or
4,232.719
3.761
anything else prompting the user for
4,234.6
4.4
input for their petronis and now I'm
4,236.48
4.6
going to go ahead and pass in that third
4,239
5.04
variable here so again similar in spirit
4,241.08
4.96