text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
system.exist exactly good question but | 4,092.96 | 5.52 |
no um break again is used to break out | 4,096 | 5.04 |
of things like loops like we saw earlier | 4,098.48 | 4.799 |
sys.exit is used to break out of the | 4,101.04 | 5.199 |
whole program itself use break for loops | 4,103.279 | 4.88 |
for now and use cis.exit to terminate | 4,106.239 | 4.48 |
the whole program good question | 4,108.159 | 4.16 |
other questions now on this program are | 4,110.719 | 4.56 |
others from where we bring the name of | 4,112.319 | 4.641 |
the key results | 4,115.279 | 3.281 |
from where do we get the name of the key | 4,116.96 | 4.64 |
uh results itself can we change the | 4,118.56 | 4.239 |
results | 4,121.6 | 3.04 |
you cannot you so we could in our | 4,122.799 | 3.841 |
program so the keys that come back in | 4,124.64 | 4 |
that json response to be clear come from | 4,126.64 | 3.76 |
itunes.apple.com | 4,128.64 | 3.76 |
some engineer some team of engineers | 4,130.4 | 4.56 |
decided for us what all of those keys | 4,132.4 | 4.64 |
would be called including track name | 4,134.96 | 4.56 |
results result count and everything else | 4,137.04 | 4.639 |
you and i can absolutely store those | 4,139.52 | 4.08 |
same values in variables just like i'm | 4,141.679 | 3.841 |
doing here with o just like i'm doing | 4,143.6 | 3.84 |
here with results you can rename those | 4,145.52 | 3.6 |
keys anything you want using python | 4,147.44 | 4.319 |
variables but the json response is | 4,149.12 | 5.599 |
coming from that third-party server | 4,151.759 | 5.841 |
other questions yes sir so i have a | 4,154.719 | 6.161 |
question related to cause a package | 4,157.6 | 4.32 |
so like | 4,160.88 | 2.24 |
uh yes | 4,161.92 | 4.64 |
so so what sort of uh ascii graphics uh | 4,163.12 | 5.119 |
is it capable of | 4,166.56 | 4.639 |
outputting the calce package um i would | 4,168.239 | 4.801 |
refer you to the url in the slides | 4,171.199 | 4.241 |
earlier uh if only because it's more | 4,173.04 | 4.159 |
thorough they have not just cows but | 4,175.44 | 3.52 |
tyrannosaurus rex's and several other | 4,177.199 | 3.761 |
animals as well i should emphasize that | 4,178.96 | 3.52 |
this is not a package i suspect you will | 4,180.96 | 3.279 |
use much in the real world it's really | 4,182.48 | 3.679 |
just meant to be representative of the | 4,184.239 | 3.681 |
types of packages you can install but | 4,186.159 | 3.52 |
allow me to refer to the documentation | 4,187.92 | 4.64 |
for what more is there but ascii art uh | 4,189.679 | 4.961 |
is the all we had before there were | 4,192.56 | 4.32 |
emojis let alone gifs and jpegs and | 4,194.64 | 4.96 |
pings but it's what is immortalized in | 4,196.88 | 5.12 |
cow say well allow me to transition us | 4,199.6 | 5.36 |
back now to one final capability of | 4,202 | 5.76 |
python which is that you yourselves have | 4,204.96 | 5.52 |
the ability to make your own libraries | 4,207.76 | 5.28 |
up until now we've been writing all of | 4,210.48 | 5.36 |
our functions in our one file hello pi | 4,213.04 | 4.96 |
and everything since and now that we've | 4,215.84 | 5.839 |
introduced modules in python like random | 4,218 | 5.92 |
and statistics we can import those that | 4,221.679 | 3.681 |
come with python but that's other | 4,223.92 | 3.52 |
people's code as well and we've now used | 4,225.36 | 3.839 |
pip this package manager to install | 4,227.44 | 3.6 |
third-party packages as well in the | 4,229.199 | 3.601 |
system and using other people's code | 4,231.04 | 2.639 |
still | 4,232.8 | 2.879 |
but to come full circle what if you | 4,233.679 | 4 |
yourself find yourself implementing the | 4,235.679 | 4.56 |
same kinds of functions again and again | 4,237.679 | 4.401 |
or you find yourself opening up old | 4,240.239 | 3.92 |
programs copying and pasting code you | 4,242.08 | 4.079 |
wrote into new programs because you have | 4,244.159 | 4.161 |
the same problem yet again a good | 4,246.159 | 4.881 |
practice would be to somehow bundle up | 4,248.32 | 5.28 |
that code you keep reusing and make your | 4,251.04 | 5.04 |
own python module or package you can | 4,253.6 | 4.48 |
keep it local on your own mac or pc or | 4,256.08 | 4.48 |
cloud server or you can go through the | 4,258.08 | 4.32 |
steps of actually bundling it up making | 4,260.56 | 3.599 |
it free in open source and putting it on | 4,262.4 | 4.319 |
something like pi pi for others to use | 4,264.159 | 4.481 |
as well okay i'm going to go ahead and | 4,266.719 | 4.48 |
run code of sayings.pi to create a brand | 4,268.64 | 4.32 |
new file called sayings.pi which is | 4,271.199 | 4.241 |
going to be my own sayings module i'm | 4,272.96 | 3.92 |
going to define a couple of simple | 4,275.44 | 3.12 |
functions in there i'm going to define a | 4,276.88 | 3.52 |
hello function that's going to take a | 4,278.56 | 4 |
name parameter as input and that | 4,280.4 | 4.64 |
function is simply going to print out an | 4,282.56 | 4.96 |
f string that contains hello comma and | 4,285.04 | 4.08 |
then in curly braces whatever that | 4,287.52 | 3.84 |
person's name actually is | 4,289.12 | 3.52 |
then i'm going to go ahead and define | 4,291.36 | 3.44 |
one other function a goodbye function | 4,292.64 | 5.36 |
that has def goodbye also takes a name | 4,294.8 | 5.439 |
as its input and then that prints out by | 4,298 | 4.719 |
contrast an f string that says goodbye | 4,300.239 | 5.601 |
comma and then in curly braces name and | 4,302.719 | 5.281 |
now just for good measure just so i can | 4,305.84 | 3.92 |
be sure that these functions are working | 4,308 | 3.04 |
as expected i'm going to go ahead and | 4,309.76 | 3.6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.