📺 Develpreneur YouTube Episode

Video + transcript

Python Certification Training - Bitwise Operators Part 1

2021-06-15 •Youtube

Detailed Notes

This episode looks into bitwise operators. More to come on this in the next episode.

Helpful links: https://overiq.com/python-101/numbers-in-python/ https://www.mathcs.emory.edu/~valerie/courses/fall10/155/resources/op_precedence.html

Learn more about the overall certification and syllabus here: https://pythoninstitute.org/certification/pcap-certification-associate/pcap-exam-syllabus/

Github repository for code examples: https://github.com/robbroadhead/PythonCertificationSeries

Transcript Text
[Music]
well hello and welcome back
we are continuing looking through the
java certification
uh series i'm not sorry java python
certification series
and today we're going to look at
numerical
operators we'll probably actually get
into bitwise as well
there will be a link in the show notes
for the github uh there's gonna be a
public github
repository floating out there i'm gonna
throw these examples
uh at this point we were just working in
the interpreter and just sort of typing
some code
although i did uh include you'll see app
one
uh if it'll pop up that we sort of
played around with last time
this time we're gonna go through and we
probably will go through this first part
pretty quick and then
jump into uh operators for bitwise
operators i'm going to do my best to
name files based on
essentially the main issue there for
each of these bullet points so that
hopefully
we'll be able to find those moderately
quickly when you're doing some research
or studying for an exam as far as
operator is concerned we'll start with
operators
and then what type they are so for
example operators numeric is we're going
to go here
so let's start with these and we're
going to start with
and actually we'll just do it like this
is we will do
an example of
and we start with the simple ones so
we're going to start with
whoop
and so we're going to go with you know
the basics and we should be able to see
i'm hoping
everybody knows these plus minus
times and divide
and then whoop and then we're going to
come down
and we're going to do a couple that may
not know as much
which is going to be
double that double that
and percent and so plus
is simply going to be
we'll do this way um we will do
and these are for um
let's do this we're going to do this
just to be sure because we are going to
come back around and we're going to
actually have some
um
we're going to have some like strings
and other
examples there we go okay so example
plus
so let's do a 1 plus 2 plus
plus 3
and then we're just going to do the same
thing
and then we're going to do minus
let's do 10 minus
four minus two actually let's do this
minus
eight just to do something a little
different
because i wanna make sure we see that
minus four
minus eight i'm multiples
let's pull this here
let's do this is gonna be uh we'll do
something simple so we'll do
two times three times one
that's one and then division
we'll do um
let's do 100 divided by 5
divided by 40.
and then we will walk through each of
these as we do it
so let's go with that first
and if we flip over here
and we do python three operators that
so here's what we see is uh so plus
pretty straightforward one plus two is
three three plus three
is six if we do minus notice here ten
minus four is six
six minus eight is actually negative two
i'm going to play around with that with
a second
and then an example of multiplications
two times three is six six times one
is six now let's flip back over here
and let's change
that to a negative one so now because
we're binding this here
since it's right next to it that's going
to be a negative one
so there is a difference here also of
if we do a positive three let's look at
these two
and so we'll see here if you put it
right next to it if you don't have that
space
then it's a positive three uh we did the
negative here we go that's a negative
one so now
it's two times three times negative one
is minus 6. if we break that out uh
here it's going to think it's an
operator oh i'm sorry if we do that
and we're going to probably see a nice
little error
oh it still took it there okay we got
lucky because it it was smart enough to
figure that out normally you want to do
it there because it is for readability's
sake
so it's important to remember that you
can do that if you were to do
um other sometimes i'll get a little
confused we'll show that in a minute oh
let's do the division real quick
uh so division 100 divided by 5 we get a
20
and 20 divided by 40 is a half so notice
it flips over
to a decimal or
a float and then if we take this
and then we do that whole thing
we get the whole thing done
and then come back here and do plus two
then we're going to see that it's going
to still be a decimal
and if we do it times plus 1.5
so that it would be an integer notice
it's still a float
it's still keeping that any questions
of course not because you're listening
you're not this is interactive but
this is pretty straightforward for the
most part just remember
things like negatives and positive
numbers
those would probably be the only things
that may trip you and really they're not
it's going to be more order precedence
these next guys are a little bit less
common
so let's do each of these so
if we do let's just do this let's do uh
two times three
let's do uh three divided by two
actually let's do like uh
17 divided by four and then here let's
do
seventeen percent four
and we'll look at each of these
let's get rid of our quotes and let's
walk through these a little bit
so if we look at this these second
series so the first one we've got is 2
times 3 multiple times or asterix
3 that is power that is 2 to the third
power
so it's actually the same as in this
case
it's going to be the same as two times
two times two
let's get all my space there so if we do
like let's say three to the fourth power
that's also gonna be three times 3 times
3
times 3. so if you look at that
there you go so 2 to 3 is 8 3 to the
fourth
is 91. so it's 3 to the 4th is 3 times 3
which is 9 times 3 is 27 times 3
is 81. so we do the um
the double division this is difference
between a div
and a mod and what it is between those
two sometimes you
some people haven't run into this as
much is the difference between
in a division whether you're dealing
with the
uh the number of times it goes in or the
you know the remainder
because with the regular division we saw
here
and actually let's do that with this 17
and four let's just do one other
so we can do this a little bit so what
you're going to see
here is if you do a single divisor
a single divide it's going to give you
the decimal if you do the double
it's going to take it and do a div which
is basically
how many what is this number how many
times complete times does it go into uh
does this
the divisor go into the divider i forget
which is which
but the the guy at the top how much does
the how often does the guy on the bottom
the denominator go into the guy at the
top
4 goes into 17 four times we see here
4.25 so we'll get that
if you do a percent it's going to give
you the remainder so
4 goes into 17 four times which leaves
you 16
and then you have a remainder of 1. so
these don't show up as often
but they do so i think they're pretty
important for us to
to remember those and again you can
always check them out if you need to
but uh it's useful to
let me do this guy uh it is useful
to uh duplicate this sorry i'll go
through this i'm gonna duplicate this
so this is gonna be uh binary
i'm sorry that was bitwise i'll call it
bitwise
uh so it's good to remember those things
as you get into it because sometimes
you'll forget those things you'll get in
and you'll sort of freak out a little
bit
so this is i'm sorry bit wise
the bitwise is a little more complicated
because here
we're actually dealing with the uh
bit version of
the numbers or the strings so first
let's just do a tilde
and so let's do
uh let's do four
tilde uh one
i don't know if i can get that number
there
and we're going to take these a little
more slowly
oops
the reason we have this is because this
is not a uh
an a operator b kind of thing this is
actually
a bit flipper and so um
let's see so it helps to know what
numbers look like
so in bit format
[Music]
and so if this is zero in bets
then you add this and that's going to be
one
that's two that's three
that's four
so if we do uh let's see four in bits
and what this is going to do is it's
going to flip it so we're going to end
up
and let's just do flip
2 so it's going to be 1 0 1 1
so that means 0 becomes a one one
becomes a zero
which is actually so that's your ones
your twos
your fours and your eights so that's
gonna be eight plus two plus one which
is eleven
so if we print that well
we're going to get
this and actually because
of its size uh it's going to be a
negative
5 because we're actually seeing this as
a negative
um and we're going we're wrapping around
in this case let me try something
a little bit play around with that
though a little bit now oops
now one is we're gonna see that if we do
a number and let's take uh
let's do something different let's do
five so five
and bits is this guy
and that means that we're going to flip
them he's going to be 101.0
and then watch what happens so if we do
um a equals
25 and then we do print
until the a
we're gonna get back five so let's see
where'd we go here i've gotta find my
thing
so we see here we go we come in
we flip four he becomes a negative five
we could flip five
that's a negative six
now i want to make it a little clearer
because it can get pretty complicated as
far as when negatives show up and when
they don't
let's just look at what we can do is we
can
format these guys and so if we
format that
[Music]
so let's do it like this
let's do it before and after
and we'll see this a little bit when we
get into strings later but i think this
will work for now
so let's take a look at this did i say
that i did
and so here you can see where it's
actually it's flipping it you can see
it's actually converting it over to a
number
and so it takes that 101
to 1001
and it's flipping it around because it's
doing a wrap around on it and then uh
where'd we go oh so that's yeah so
here's the four
and then five is going to flip those
over
and of course we can always come back to
it
this is useful in some areas basically
when we're trying to do like and
um some logical stuff but uh it's a
start
on the bitwise stuff and like i said i'm
not sure how often you're gonna need it
other than when you're setting flags for
example
um and if you get into some deeper kinds
of uh coding but
it's important to know that at this
point
uh that the little tilde
reverses it and let's just do that let's
see
flip bits we'll call that
now the ampersand
let's get over to that
and let's do this
one um well i'm not gonna i'm gonna have
to we'll have to explain so what this
does
is this is a bit wise
and which means uh let's look at our
numbers before so if we looked
at um
yeah i'm not gonna be able to do it this
way i'm not gonna be able to show you
the initial as much so if i do like a
four
and a five
when you look at those
[Music]
let's go pick up these two so four in
bits
is this five
is zero one zero one
and this actually the reason we're
seeing these negatives is actually it's
treated as something like this
and so you get something that's a little
bit funky but what
an and does is it takes everything where
there's a one and turns it into one
so the and turns this
into one two three
four five there's a one and one and a
one
so that should be a seven so if we do
that
so the last three we're going to see
there because it's not flipping it's
just
doing ands and so if we were to print
without the format
[Music]
see oops i don't need the format get rid
of that
then what we're going to see here on our
ampersand
is not going to tell me what i want it
to
i'm sorry and is it's got to be both i'm
sorry shoot it's an
and not an or i talked about that in a
minute so the or
is it's one or the other has to be so
it actually ends up being this because
zero or zero is zero zero zero zero zero
and then we go one or one is one
zero or one is one
i'm sorry zero or zero is one and then
zero
or one is one so if we were to take
something more complicated
um let's do like a i don't know like a
17
i have no idea what that is we're going
to figure that one out real quick
uh so that's one two four eight
so that's that's going to be like a 17
and let's do like a
let's do a nine no
it's like a 15.
it's a 15 it's going to be i think one
on one
one one two four eight twelve and three
is fifteen
so that's going to end up being
this guy
so if we do 17 and 15
17 and 15.
oh and it simplifies it back down to one
on me
because it's one or one plus one or one
plus one or one plus one or one did that
get right
i'm sorry and oh geez and and why do i
keep saying one or it's
one and so one and is only going to be
this last one that's the only and i'm so
sorry
um so zero and zero
we get down here one and
one is one zero and zero is zero
zero and one is
zero so that's the four right
uh oh we didn't keep that one
[Music]
in order doesn't matter by the way so
look if i do
at least in the bitwise and because
we're just doing an ant on each of the
things it doesn't matter that
you know which is which so we're gonna
see that
um four bits there
oh i'm sorry yeah okay so that's a
yeah four oh i'm sorry it's not 100
that's a that's a bit wise my mistake
and then here since we're doing hands we
get down to that one
all right so i'm gonna hold off at this
point on the next
piece uh next we're going to come into
is we're going to start taking a look
into these other operators because
i don't want to get too long on this one
so we'll come back to part two
working our way through our operators as
always like i said it's going to be in
the show notes where the
the links to github are so you can see
all the source and all these little
notes along the way
and as always you can also shoot an
email out to info development.com or
throw a comment out on the youtube
channel if you've got any questions
uh or want any clarifications on any of
these pieces so
until the next time have yourself a
great day a great week
and we'll talk to you then
you
Transcript Segments
0.62

[Music]

26.16

well hello and welcome back

28

we are continuing looking through the

29.599

java certification

31.039

uh series i'm not sorry java python

33.6

certification series

35.44

and today we're going to look at

37.6

numerical

38.64

operators we'll probably actually get

40

into bitwise as well

42.399

there will be a link in the show notes

45.84

for the github uh there's gonna be a

48.64

public github

49.76

repository floating out there i'm gonna

51.76

throw these examples

53.039

uh at this point we were just working in

54.96

the interpreter and just sort of typing

57.36

some code

58

although i did uh include you'll see app

60.64

one

61.52

uh if it'll pop up that we sort of

63.84

played around with last time

65.199

this time we're gonna go through and we

66.799

probably will go through this first part

68.08

pretty quick and then

69.119

jump into uh operators for bitwise

72

operators i'm going to do my best to

73.439

name files based on

75.439

essentially the main issue there for

78.4

each of these bullet points so that

79.759

hopefully

80.479

we'll be able to find those moderately

82.24

quickly when you're doing some research

84.479

or studying for an exam as far as

86.64

operator is concerned we'll start with

88

operators

88.72

and then what type they are so for

90.32

example operators numeric is we're going

92.64

to go here

94.32

so let's start with these and we're

96.24

going to start with

97.6

and actually we'll just do it like this

100.32

is we will do

101.28

an example of

106.72

and we start with the simple ones so

108.24

we're going to start with

112.84

whoop

115.52

and so we're going to go with you know

117.52

the basics and we should be able to see

119.439

i'm hoping

120.32

everybody knows these plus minus

124.24

times and divide

127.52

and then whoop and then we're going to

130.72

come down

131.44

and we're going to do a couple that may

133.599

not know as much

135.04

which is going to be

138.16

double that double that

144.08

and percent and so plus

147.76

is simply going to be

154.64

we'll do this way um we will do

160.72

and these are for um

168.56

let's do this we're going to do this

170.4

just to be sure because we are going to

171.68

come back around and we're going to

172.8

actually have some

174.56

um

177.84

we're going to have some like strings

179.04

and other

181.36

examples there we go okay so example

183.76

plus

185.76

so let's do a 1 plus 2 plus

190.159

plus 3

194.64

and then we're just going to do the same

196.84

thing

200.879

and then we're going to do minus

207.92

let's do 10 minus

211.2

four minus two actually let's do this

214.319

minus

215.599

eight just to do something a little

217.92

different

219.92

because i wanna make sure we see that

221.68

minus four

223.28

minus eight i'm multiples

233.519

let's pull this here

239.12

let's do this is gonna be uh we'll do

241.28

something simple so we'll do

242.959

two times three times one

250.4

that's one and then division

256.239

we'll do um

259.28

let's do 100 divided by 5

263.12

divided by 40.

268.8

and then we will walk through each of

270.96

these as we do it

273.68

so let's go with that first

276.96

and if we flip over here

280.24

and we do python three operators that

283.84

so here's what we see is uh so plus

288

pretty straightforward one plus two is

289.44

three three plus three

291.04

is six if we do minus notice here ten

294

minus four is six

295.44

six minus eight is actually negative two

298.24

i'm going to play around with that with

299.28

a second

300.08

and then an example of multiplications

301.52

two times three is six six times one

304

is six now let's flip back over here

308.24

and let's change

313.12

that to a negative one so now because

315.759

we're binding this here

316.96

since it's right next to it that's going

318.32

to be a negative one

320

so there is a difference here also of

329.6

if we do a positive three let's look at

332.08

these two

336.8

and so we'll see here if you put it

340.24

right next to it if you don't have that

341.759

space

342.8

then it's a positive three uh we did the

345.199

negative here we go that's a negative

347.12

one so now

348

it's two times three times negative one

351.12

is minus 6. if we break that out uh

354.72

here it's going to think it's an

356.08

operator oh i'm sorry if we do that

359.36

and we're going to probably see a nice

360.8

little error

364

oh it still took it there okay we got

365.919

lucky because it it was smart enough to

367.759

figure that out normally you want to do

369.039

it there because it is for readability's

371.12

sake

373.52

so it's important to remember that you

374.88

can do that if you were to do

376.96

um other sometimes i'll get a little

378.72

confused we'll show that in a minute oh

380.24

let's do the division real quick

382.479

uh so division 100 divided by 5 we get a

386.479

20

387.84

and 20 divided by 40 is a half so notice

391.12

it flips over

392

to a decimal or

395.52

a float and then if we take this

398.96

and then we do that whole thing

402

we get the whole thing done

406.479

and then come back here and do plus two

412.319

then we're going to see that it's going

413.759

to still be a decimal

418.319

and if we do it times plus 1.5

422.08

so that it would be an integer notice

424.24

it's still a float

425.36

it's still keeping that any questions

429.199

of course not because you're listening

430.8

you're not this is interactive but

433.28

this is pretty straightforward for the

435.36

most part just remember

436.639

things like negatives and positive

438.96

numbers

440.56

those would probably be the only things

441.759

that may trip you and really they're not

443.599

it's going to be more order precedence

445.84

these next guys are a little bit less

449.52

common

453.36

so let's do each of these so

456.56

if we do let's just do this let's do uh

460

two times three

464.879

let's do uh three divided by two

471.599

actually let's do like uh

474.879

17 divided by four and then here let's

478.879

do

479.199

seventeen percent four

483.919

and we'll look at each of these

493.44

let's get rid of our quotes and let's

496.479

walk through these a little bit

500.8

so if we look at this these second

502.72

series so the first one we've got is 2

505.039

times 3 multiple times or asterix

508.639

3 that is power that is 2 to the third

512.32

power

513.279

so it's actually the same as in this

516.159

case

517.279

it's going to be the same as two times

520.24

two times two

525.519

let's get all my space there so if we do

528.16

like let's say three to the fourth power

531.2

that's also gonna be three times 3 times

534.48

3

535.519

times 3. so if you look at that

539.36

there you go so 2 to 3 is 8 3 to the

542.72

fourth

543.2

is 91. so it's 3 to the 4th is 3 times 3

546.08

which is 9 times 3 is 27 times 3

548.48

is 81. so we do the um

553.04

the double division this is difference

555.279

between a div

556.48

and a mod and what it is between those

559.44

two sometimes you

560.48

some people haven't run into this as

561.68

much is the difference between

564.48

in a division whether you're dealing

567.04

with the

568.399

uh the number of times it goes in or the

570.56

you know the remainder

572.399

because with the regular division we saw

574.839

here

576.16

and actually let's do that with this 17

578.24

and four let's just do one other

584.32

so we can do this a little bit so what

586.72

you're going to see

587.44

here is if you do a single divisor

590.48

a single divide it's going to give you

593.68

the decimal if you do the double

596.959

it's going to take it and do a div which

599.279

is basically

600.72

how many what is this number how many

604.079

times complete times does it go into uh

607.2

does this

608.16

the divisor go into the divider i forget

611.279

which is which

612.72

but the the guy at the top how much does

615.04

the how often does the guy on the bottom

616.88

the denominator go into the guy at the

619.92

top

621.6

4 goes into 17 four times we see here

624.399

4.25 so we'll get that

626.64

if you do a percent it's going to give

628

you the remainder so

629.76

4 goes into 17 four times which leaves

632.399

you 16

633.44

and then you have a remainder of 1. so

635.839

these don't show up as often

637.44

but they do so i think they're pretty

639.92

important for us to

641.519

to remember those and again you can

644

always check them out if you need to

646.48

but uh it's useful to

649.76

let me do this guy uh it is useful

654

to uh duplicate this sorry i'll go

656.959

through this i'm gonna duplicate this

658.88

so this is gonna be uh binary

663.04

i'm sorry that was bitwise i'll call it

664.8

bitwise

666.64

uh so it's good to remember those things

668.16

as you get into it because sometimes

671.519

you'll forget those things you'll get in

673.12

and you'll sort of freak out a little

674.32

bit

674.64

so this is i'm sorry bit wise

679.68

the bitwise is a little more complicated

687.36

because here

695.12

we're actually dealing with the uh

698.48

bit version of

702.8

the numbers or the strings so first

706.48

let's just do a tilde

710.32

and so let's do

714

uh let's do four

717.36

tilde uh one

721.2

i don't know if i can get that number

722.48

there

725.04

and we're going to take these a little

726.959

more slowly

742.839

oops

744.48

the reason we have this is because this

746.32

is not a uh

747.839

an a operator b kind of thing this is

750.56

actually

752.079

a bit flipper and so um

756

let's see so it helps to know what

758.16

numbers look like

760.32

so in bit format

764.27

[Music]

765.36

and so if this is zero in bets

770

then you add this and that's going to be

771.68

one

773.36

that's two that's three

776.959

that's four

780.16

so if we do uh let's see four in bits

784.639

and what this is going to do is it's

785.92

going to flip it so we're going to end

788.32

up

790.32

and let's just do flip

793.839

2 so it's going to be 1 0 1 1

797.279

so that means 0 becomes a one one

799.839

becomes a zero

800.88

which is actually so that's your ones

802.88

your twos

804.16

your fours and your eights so that's

806.72

gonna be eight plus two plus one which

808.56

is eleven

809.68

so if we print that well

814.639

we're going to get

818.399

this and actually because

821.76

of its size uh it's going to be a

824.56

negative

825.279

5 because we're actually seeing this as

828.16

a negative

830.079

um and we're going we're wrapping around

833.279

in this case let me try something

836.48

a little bit play around with that

839.76

though a little bit now oops

842.8

now one is we're gonna see that if we do

846.079

a number and let's take uh

849.279

let's do something different let's do

850.399

five so five

854.72

and bits is this guy

858.32

and that means that we're going to flip

859.68

them he's going to be 101.0

864.32

and then watch what happens so if we do

867.76

um a equals

871.68

25 and then we do print

876.16

until the a

879.68

we're gonna get back five so let's see

882.72

where'd we go here i've gotta find my

884.88

thing

887.44

so we see here we go we come in

890.88

we flip four he becomes a negative five

892.639

we could flip five

894.72

that's a negative six

898.24

now i want to make it a little clearer

900.16

because it can get pretty complicated as

901.68

far as when negatives show up and when

903.04

they don't

904.32

let's just look at what we can do is we

907.519

can

908.079

format these guys and so if we

912

format that

915.42

[Music]

917.92

so let's do it like this

921.519

let's do it before and after

927.199

and we'll see this a little bit when we

928.72

get into strings later but i think this

930.88

will work for now

932.32

so let's take a look at this did i say

934.48

that i did

939.199

and so here you can see where it's

940.8

actually it's flipping it you can see

942.079

it's actually converting it over to a

943.68

number

945.519

and so it takes that 101

948.8

to 1001

951.839

and it's flipping it around because it's

953.12

doing a wrap around on it and then uh

955.759

where'd we go oh so that's yeah so

958

here's the four

960.56

and then five is going to flip those

964.16

over

965.92

and of course we can always come back to

967.36

it

968.959

this is useful in some areas basically

972.32

when we're trying to do like and

973.759

um some logical stuff but uh it's a

976.959

start

978.16

on the bitwise stuff and like i said i'm

981.36

not sure how often you're gonna need it

982.8

other than when you're setting flags for

984.24

example

985.44

um and if you get into some deeper kinds

987.68

of uh coding but

989.279

it's important to know that at this

991.279

point

992.48

uh that the little tilde

995.6

reverses it and let's just do that let's

998.56

see

999.6

flip bits we'll call that

1003.519

now the ampersand

1009.6

let's get over to that

1012.72

and let's do this

1018.079

one um well i'm not gonna i'm gonna have

1021.12

to we'll have to explain so what this

1022.56

does

1023.68

is this is a bit wise

1027.039

and which means uh let's look at our

1030.079

numbers before so if we looked

1031.679

at um

1035.679

yeah i'm not gonna be able to do it this

1036.72

way i'm not gonna be able to show you

1037.6

the initial as much so if i do like a

1039.36

four

1039.76

and a five

1043.6

when you look at those

1046.46

[Music]

1050

let's go pick up these two so four in

1052.88

bits

1053.76

is this five

1056.88

is zero one zero one

1062.24

and this actually the reason we're

1063.919

seeing these negatives is actually it's

1065.679

treated as something like this

1068.96

and so you get something that's a little

1070.4

bit funky but what

1072

an and does is it takes everything where

1074.799

there's a one and turns it into one

1077.12

so the and turns this

1080.88

into one two three

1084.32

four five there's a one and one and a

1087.28

one

1089.919

so that should be a seven so if we do

1093.52

that

1094

so the last three we're going to see

1095.52

there because it's not flipping it's

1096.72

just

1097.2

doing ands and so if we were to print

1100.16

without the format

1104.05

[Music]

1106.96

see oops i don't need the format get rid

1109.76

of that

1110.96

then what we're going to see here on our

1113.36

ampersand

1116.4

is not going to tell me what i want it

1119.679

to

1121.36

i'm sorry and is it's got to be both i'm

1123.52

sorry shoot it's an

1124.799

and not an or i talked about that in a

1127.12

minute so the or

1128.48

is it's one or the other has to be so

1132.48

it actually ends up being this because

1135.6

zero or zero is zero zero zero zero zero

1137.84

and then we go one or one is one

1140.4

zero or one is one

1144.08

i'm sorry zero or zero is one and then

1147.039

zero

1147.52

or one is one so if we were to take

1150.4

something more complicated

1152.4

um let's do like a i don't know like a

1156.64

17

1157.679

i have no idea what that is we're going

1159.12

to figure that one out real quick

1161.36

uh so that's one two four eight

1165.28

so that's that's going to be like a 17

1168.24

and let's do like a

1172.24

let's do a nine no

1175.76

it's like a 15.

1179.28

it's a 15 it's going to be i think one

1181.76

on one

1182.559

one one two four eight twelve and three

1186.48

is fifteen

1187.36

so that's going to end up being

1191.12

this guy

1196.48

so if we do 17 and 15

1201.28

17 and 15.

1210.64

oh and it simplifies it back down to one

1212.559

on me

1215.6

because it's one or one plus one or one

1217.52

plus one or one plus one or one did that

1219.36

get right

1227.76

i'm sorry and oh geez and and why do i

1230.799

keep saying one or it's

1232.32

one and so one and is only going to be

1236.64

this last one that's the only and i'm so

1239.12

sorry

1240.24

um so zero and zero

1243.919

we get down here one and

1247.52

one is one zero and zero is zero

1252.48

zero and one is

1256.32

zero so that's the four right

1260.48

uh oh we didn't keep that one

1267.6

[Music]

1270.48

in order doesn't matter by the way so

1272.88

look if i do

1276

at least in the bitwise and because

1277.52

we're just doing an ant on each of the

1279.28

things it doesn't matter that

1280.799

you know which is which so we're gonna

1283.12

see that

1284.32

um four bits there

1289.679

oh i'm sorry yeah okay so that's a

1294.159

yeah four oh i'm sorry it's not 100

1295.919

that's a that's a bit wise my mistake

1298.559

and then here since we're doing hands we

1300.32

get down to that one

1302.32

all right so i'm gonna hold off at this

1304.24

point on the next

1305.84

piece uh next we're going to come into

1308.88

is we're going to start taking a look

1310.24

into these other operators because

1311.919

i don't want to get too long on this one

1313.28

so we'll come back to part two

1314.96

working our way through our operators as

1317.84

always like i said it's going to be in

1318.96

the show notes where the

1321.44

the links to github are so you can see

1323.36

all the source and all these little

1324.64

notes along the way

1326.4

and as always you can also shoot an

1328

email out to info development.com or

1330.48

throw a comment out on the youtube

1332.159

channel if you've got any questions

1334.24

uh or want any clarifications on any of

1336.24

these pieces so

1337.52

until the next time have yourself a

1338.88

great day a great week

1340.559

and we'll talk to you then

1356.88

you