text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
what's called its own package manager | 2,776 | 3.76 |
this one here called pip which is just | 2,777.92 | 5.6 |
one so pip is a program that generally | 2,779.76 | 6.24 |
comes with python itself nowadays that | 2,783.52 | 4.799 |
allows you to install packages onto your | 2,786 | 4.88 |
own macs or pcs or cloud environment by | 2,788.319 | 4.561 |
just running a command and then voila | 2,790.88 | 4.88 |
you have access to a whole new library | 2,792.88 | 4.719 |
in python that didn't come with python | 2,795.76 | 4.079 |
itself but now it's available on your | 2,797.599 | 3.281 |
system | 2,799.839 | 3.201 |
for you let's go back to vs code here | 2,800.88 | 3.52 |
and in my terminal window i'm going to | 2,803.04 | 4.079 |
go ahead and type pip install | 2,804.4 | 5.04 |
cow say now what's going on here pip is | 2,807.119 | 4.401 |
the command the package manager and i | 2,809.44 | 4.56 |
want to install what package the package | 2,811.52 | 4 |
called cow say i'm going to go ahead and | 2,814 | 4.16 |
hit enter here and after a little bit of | 2,815.52 | 4.799 |
output it has successfully installed cow | 2,818.16 | 4.24 |
say now what does that mean that means i | 2,820.319 | 4.401 |
can now go about importing this into my | 2,822.4 | 4.24 |
own code well let's go ahead and see | 2,824.72 | 3.2 |
what this means let me go ahead and | 2,826.64 | 3.76 |
create a new file with code called say | 2,827.92 | 4.24 |
dot pi because i want something to be | 2,830.4 | 4.08 |
said on the screen and in my new tab | 2,832.16 | 4.159 |
here i'm going to go ahead and import | 2,834.48 | 5.04 |
cowse which presumably is now installed | 2,836.319 | 5.361 |
i'm now going to import sys as well | 2,839.52 | 3.92 |
because i'd like to use some command | 2,841.68 | 3.439 |
line arguments in this program just so | 2,843.44 | 3.44 |
that i can run it quickly and without | 2,845.119 | 3.841 |
using the input function i can get the | 2,846.88 | 4.64 |
user's name immediately from the prompt | 2,848.96 | 4 |
and let me go ahead and do this i'm | 2,851.52 | 2.72 |
going to do a bit of error checking | 2,852.96 | 3.04 |
proactively this time and rather than | 2,854.24 | 3.52 |
use less than or greater than i'm this | 2,856 | 3.68 |
time going to say if the length of | 2,857.76 | 4.079 |
sys.org v does | 2,859.68 | 4.639 |
does equal two so if the human is | 2,861.839 | 4.321 |
provided just the name of the program | 2,864.319 | 4.081 |
and their own first name we're good to | 2,866.16 | 3.04 |
go | 2,868.4 | 2.8 |
i'm going to do the following i'm going | 2,869.2 | 4.399 |
to call a function called | 2,871.2 | 3.359 |
cow | 2,873.599 | 3.52 |
in the package called cow say and i'm | 2,874.559 | 5.201 |
going to pass in a string hello | 2,877.119 | 5.281 |
comma and then as in the past i'm going | 2,879.76 | 4.079 |
to pass in just one string because | 2,882.4 | 3.04 |
according to its documentation it's not | 2,883.839 | 3.52 |
like print i can't pass in comma this | 2,885.44 | 4 |
comma that i can only pass in one string | 2,887.359 | 3.921 |
so i'm going to concatenate the contents | 2,889.44 | 6.399 |
of sis.org v bracket one so long as then | 2,891.28 | 7.6 |
i type in my name david after the name | 2,895.839 | 5.041 |
of this program it should end up in | 2,898.88 | 5.199 |
sys.org v1 in which case this line 5 of | 2,900.88 | 5.12 |
code should concatenate hello with my | 2,904.079 | 4.081 |
name with a space in between and | 2,906 | 4.48 |
apparently a cow is going to say it so | 2,908.16 | 4 |
let's see what happens here | 2,910.48 | 4 |
let me go ahead and clear my screen and | 2,912.16 | 4.399 |
increase the size of my terminal window | 2,914.48 | 4.32 |
let me go ahead and run python of say | 2,916.559 | 6 |
dot pi and type my name david and enter | 2,918.8 | 5.92 |
there is the program called kausei it | 2,922.559 | 4.401 |
literally has a cow say something on the | 2,924.72 | 3.92 |
screen and this is a throwback to a | 2,926.96 | 3.44 |
program from yesteryear that tended to | 2,928.64 | 4.16 |
come with a lot of systems | 2,930.4 | 4.48 |
this is otherwise known as ascii art | 2,932.8 | 4.08 |
it's a textual way using just keys on | 2,934.88 | 4.719 |
your keyboard to print pictures of sorts | 2,936.88 | 4.719 |
on the screen now we can really go down | 2,939.599 | 3.52 |
the rabbit hole here and there's | 2,941.599 | 3.361 |
questionable academic value of doing so | 2,943.119 | 3.761 |
so i'll do so just once turns out the | 2,944.96 | 3.84 |
cow say package comes with other | 2,946.88 | 4.32 |
functions as well one of those functions | 2,948.8 | 5.12 |
for instance is t-rex and if i now | 2,951.2 | 4.639 |
increase the size of my terminal window | 2,953.92 | 3.36 |
we'll perhaps see where we're going with | 2,955.839 | 3.361 |
this let me now run again python of | 2,957.28 | 4.079 |
say.pi this time let me not provide my | 2,959.2 | 4.08 |
name just to see if it's broken | 2,961.359 | 4 |
it's still okay because we have that if | 2,963.28 | 5.76 |
condition if the length of sys.rgv | 2,965.359 | 5.76 |
equals equals 2 and only if it equals | 2,969.04 | 3.92 |
equals 2 do we do anything that's why | 2,971.119 | 3.841 |
we're not seeing anything here let me go | 2,972.96 | 4.639 |
ahead and cooperate now say.pi space | 2,974.96 | 6.24 |
david and it's no longer a cow but | 2,977.599 | 7.441 |
if i zoom out on my screen a t-rex why | 2,981.2 | 5.52 |
just because these are the things you | 2,985.04 | 3.2 |
can do once you know how to program you | 2,986.72 | 2.879 |
can even package them up and make them | 2,988.24 | 3.2 |
freely available to others as open | 2,989.599 | 3.921 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.