Search for notes by fellow students, in your own course and all over the country.

Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.

My Basket

You have nothing in your shopping cart yet.

Title: Python Programming
Description: Learn Python in details

Document Preview

Extracts from the notes are below, to see the PDF you'll receive please use the links above


Learn Python
With
Network Chunks

1

You need to learn Python RIGHT NOW!! // EP 1
DS
You need to learn Python right now
...
And by the end of
this course, my goal is for you to have the skills just to be awesome and Python
and whatever job you have
...

Replica is the tool we 're going to be using to do all of this Python stuff
...
Forking is basically creating your own version of what I 've
typed in here
...
When we're using
Python, we 're telling our computer what to do in a language
...
You can do anything with Python and that 's what makes it
amazing
...
Double quotes is a good
way to remember
...
This is called a comment
...
It's for people
...
As you're coding, you can make notes on what
you're doing
...
This is a Python IDE or an integrated
development environment
...
And a lot of ways, it 's like a
spellchecker
...
So we know that here ,
when we printed the string , no I am poppy
...
And then we try to run it
...
He says there are multiple ways to do this
...
Greene says
Python no longer recognized that this entire thing is string it
...
We will start by printing a string using the print
function and then between the parentheses, we will add what it should say
...
Now, we are going to talk about functions
...
They allow us to
automate tasks and make our programs more efficient
...
The input function will automatically convert the
input to a string and it will become more important later on
...
Kelvin will use
something called a very, a bull
...
The way we can do that is by adding a hashtag or a pound sign in
front of all our commands or functions here
...
That's handy to do when you want to just test out stuff and have the
computer
...

Just a word is a variable
...
Chuck
...
Let's make him remember a
customer's name
...
" Or adding stuff together
...
So instead of saying hello, the customer's
name
...
The next step is to use this in our ingredient, which
is the string susan
...
I want to challenge for
you and I'm going to give you the answer in this video
...
To give the customer a menu
...
Let's go ahead and run this code and see what happens
...
First, we've got a
variable menu
...
Now let's have a robot
barista ask the customer what they want and give them the menu
...
I'm
going to give you a tip now
...
How
would I combine these two parts of the script right here? Let me know who
episode two is coming in strong
...
In this episode, we'll cover some stuff like
strings and variables, and we had like seven cups of coffee
...
The first type of number
we'll talk about is our good old whole number
...
A whole number is referred to as an integer because they just have to be
different non skinny
...
Watch this
...
And it's a
function called type
...
So for example, if
we wanted to find out what type of data the variable name was, we would type
in type and then put name
...
So now I'm using the print function to print
the type function to print type age and we'll print that sucker out
...
Okay,
cool
...

You could use Python as a calculator, like watch this
...
" You're probably not surprised that Python can do math, because mean
computers are "pretty big on math
...
You can do math and Python
...
Any time Python
divides or uses division, it will convert numbers into floating point numbers
before it divides and the result will be a floating point
...
We had to actually start charging our customer some money and to do
that, we need math
...
We're
going to modify our network coffee script
...
Task number one, first, create a variable named "price"
and assign an integer
...


4

There is a little gotcha
...
This solves a task
...
So in
book, because we want to get some information, some data from our customers
and we'll ask how many coffee we want
...
We know based on simple math skills, it should be 80
...
Why? Well, because of this
...
It's
run our code, run, walk through it again
...
So just under print total, actually, we're
going to remove print total
...
We'll do a string
...
Your total is we'll
do a colon and a space
...
We're going to
concatenate
...
So we'll do plus space and then we'll do total
...
Now more
foreshadowing
...
That's
programming man
...
I
feel like I'm saying toto, total typing str parentheses and we'll wrap it up both
sides
...
Let's run the code and see what happens
...
That's some coffeyville man
...
Ooh, Python's amazing
...
And we did some crazy things like converting into jersey into
strings and strings and integers
...
I'm going to
teach you pretty much everything you need to know to become amazing and
awesome and dangerous with Python
...
Because we don't want Ben
here
...
We need to program a robot barista bouncer to prevent
Ben from coming into our coffee shop
...
And if their name isn't Ben, then they're
cool
...
We can change what
our programs do based on certain things that happen
...
If statements are powerfully simple, all we're do ing here is
saying if whatever comes after it is true, then do something
...
So go ahead and put your cursor right after that colon head enter and
we're going to do something and print out
...
so you can see this is a little more complex
than it first seems
...
either it will
evaluate to the value that we assigned plus one or it will evaluate to the value
that we assigned to the variable
...
If
that statement is false, watch this new concept time
...
Enter
...
And x to cut that and paste
that right here
...
Code
editors make it easy for us to kind of know when we have to do some spacing
...
So the colon means we're done
...
And then right here at the end of our print
function, head enter and we can still do more stuff
...
I told you we were not done with math
...
Remember

...

Less than or equal to and are
...
Equal sign with one equal sign
...
What we're now telling you to do is evaluate if
the variable is already equal to
...
And if it is not it'll evaluate to
network chuck plus one
...
So Python is actually giving us two choices here
...

In this episode, the code tells the viewers that Ben is not welcome, but then it
allows them to continue
...
If viewers enjoyed this episode,
they should hit the like button, notification, comment, and subscribe buttons
...


7

Welcome to episode five of my Python Right Now series
...

If something is true, then do something
...
If their name is Ben, we need to
ask them, "Hey, are you evil?" If they answer yes, kick them out
...
And they can continue on real quick
...
We're now finding out if Ben is evil and this evil status will either
answer or equal to yes or no
...
It
sounds like we might need another if statement, right? If it's yes, we have
...
If it's no, we must let him come in
...
Spacing the indentation
If your name is Ben and you are indeed evil, it's going to run that code
...
If statement that way it'll only
run if Ben and Ben is evil
...
So
now we need to add some code to make Ben feel a little special
...
I don't care what you're right, but make Ben feel good
...
So do something similar here
...
Hit enter
...
If and here is where I'll type in my
else
...
Colon hit enter and here's where I'll make Ben
...
Nested if
statements are possible and it is possible and I want you to try this with just if
statements
...
If
they, he ordered a frappuccino, we did that with a beautiful, just a beautiful
...
If statement, sorry for that
...
If the order does not
include a frappuccino, the price is $1
...
If the order does not
include a frappuccino, the price is $1
...
For example, if the order includes a frappuccino and black coffee, the price
will be $3
...

This is a coffee shop now that's it for the new concepts
...
The link for that and the walkthrough will be in the
description below
...
If the answer is yes, make the price $ 11
...
well, keep it at the
standard price
...
This particular problem will combine everything
you've learned in this video and previous stuff
...
Just like every episode in this course, you'll have access to a free Python
lab right here in your browser
...
Follow this path to learn a ton
of stuff, but you're doing things hands on
...
Then build up some Linux skills, routing and switching customer service
skills, dude, this is so cool
...
If Ben comes in, dude, this is true, and if
Patricia comes in, dude, it's true
...
Ooh, powerful
...
He certainly is evil, but
he also does good things
...
That's why we're going to go to flow chart mode
...
And just like their eagle status
...
They're just evil
...
We'll call it good underscore deeds and we'll
have that equal to input
...
If less than four, get outta here
...
If the answer is yes,
let's make sure you're not evil
...
"It's
going to hurt a little bit
...
I'm
lowkey am my evil
...
How many good deeds I've only done
two good deeds today
...
"
Python programming has been dealing with if statements in Python
programming
...
This is the not logical operator
...
Did you know that we can actually
just type stuff in our terminal and do Python in real time? So do this
...
So for
me, it will be network check the string network
...
It will be bob or
ben, sorry, ben
...
Bam
...
Chuck
...

This means not equals
...

I’m going to have in the link below some challenge labs for you to complete and

9

accomplish because honestly with Python and programming and anything in it
will help you get there
...
Chuck and Chuck also recommend checking
out Pro TV, the sponsor of this video
...


10

what is a List in Python?
NetworkChuck
This is a Python list, and they are ridiculously powerful and pretty fun to play
with
...
Check that link below in the
description to get access to a free Python lab right now
...
A Python list is an ordered and changeable
collection of data objects
...
Bernard says a Python list can be a
list of objects of all types
...
A list can have
more than just string data types inside of it
...
One big
fat string
...
We have 10
individual pieces of data inside this one variable
...
3 degrees
...
It can be
used to assign who's going to bring what on a camping trip
...
The list is so powerful that it
can assign data with a list
...
When you put your
stuff, that data, into your list, the order you put it in there stays the same
...
That always
messes me up whenever I'm dealing with list
...
When we index a list, we use brackets to
indicate the order it's in
...
You may not know how big a list is
...
What
you can do with lists is going to be mind blowing, and thanks to the sponsor of
this series, itprotv, you can get 30% off your order if you use my code
networkchuck
...
In less than a month, you could have a career!

11

Adding stuff to a Python List
NetworkChuck
In this video, we're going to level up our Python list skills
...
I've got a free Python lab that you can use right here in
your browser, right now
...
Check this out
...
A method in Python is somewhat similar to a function
except it is associated with object/classes
...
You're going to use a ton of them not just with lists,
but with other tools and functions as you learn this, getting a head start on
everything else
...
We're simply using a plus sign
addition things we've already covered in this course
...
Now can I show you one more fun way to do this
...
When
you want to add one piece of data at a time, we'll use the append method
...
We'll either use the extend
method with a list inside or we can simply add list to list
...

What if you want it to go in the beginning or in the middle or second to last
there is a method, a new method
...
And I don't really care about that so much
...
Now I position if I want it to be second from
last will be negative
...
Marshmallows are delicious
...
Because you 're pretty much the same
as a list
...
they hold an ordered list of data strings,
integers
...
Cause I only ever use list
...
so in this video, I want to figure out why is there a Tule
...
so I dove deeper
...
sponsor
this video
...
you 're about to get one for free
...
a tule is faster than a list
...

but in Tules you might use hetero-heterogeneous data
...
and in our example, this little millisecond
difference in time does N't seem like a big thing
...
all you need is a
comma
...
by
doing this, I 'll create three variables, name, age, drink, and half that equal the
two bowl network network, Chuck
...
you can
put a list inside a list instead of inside tule
...
it 's immutable
...
and finally, let 's make one more tubal stuff
...
like comment, subscribe, and look
Title: Python Programming
Description: Learn Python in details