# introduction to IT support

# Computer Language

<div class="phrases" id="bkmrk-remember-when-i-said"><div aria-label="toggle video from current lecture segment: Remember when I said that a computer is a device that" class="rc-Phrase active css-ugczj4" data-cue="1" data-cue-index="0" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Remember when I said that a computer is a device that </span></div><div aria-label="toggle video from stores and processes data by performing calculations?" class="rc-Phrase css-ugczj4" data-cue="2" data-cue-index="1" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">stores and processes data by performing calculations? </span></div><div aria-label="toggle video from Whether you're creating" class="rc-Phrase css-ugczj4" data-cue="3" data-cue-index="2" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Whether you're creating </span></div><div aria-label="toggle video from an artificial intelligence that can be" class="rc-Phrase css-ugczj4" data-cue="4" data-cue-index="3" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">an artificial intelligence that can be </span></div><div aria-label="toggle video from humans at chess or" class="rc-Phrase css-ugczj4" data-cue="5" data-cue-index="4" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">humans at chess or </span></div><div aria-label="toggle video from something more simple like running a video game," class="rc-Phrase css-ugczj4" data-cue="6" data-cue-index="5" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">something more simple like running a video game, </span></div><div aria-label="toggle video from the more computing power you have access to," class="rc-Phrase css-ugczj4" data-cue="7" data-cue-index="6" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the more computing power you have access to, </span></div><div aria-label="toggle video from the more you can accomplish." class="rc-Phrase css-ugczj4" data-cue="8" data-cue-index="7" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the more you can accomplish. </span></div><div aria-label="toggle video from By the end of this lesson," class="rc-Phrase css-ugczj4" data-cue="9" data-cue-index="8" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">By the end of this lesson, </span></div><div aria-label="toggle video from you'll understand what a computer calculates and how." class="rc-Phrase css-ugczj4" data-cue="10" data-cue-index="9" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">you'll understand what a computer calculates and how. </span></div><div aria-label="toggle video from Let's look at this simple math problem." class="rc-Phrase css-ugczj4" data-cue="11" data-cue-index="10" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Let's look at this simple math problem. </span></div><div aria-label="toggle video from Zero plus one equals what?" class="rc-Phrase css-ugczj4" data-cue="12" data-cue-index="11" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Zero plus one equals what? </span></div><div aria-label="toggle video from It only takes a moment to come up with the answer one," class="rc-Phrase css-ugczj4" data-cue="13" data-cue-index="12" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It only takes a moment to come up with the answer one, </span></div><div aria-label="toggle video from but imagine that you needed to do" class="rc-Phrase css-ugczj4" data-cue="14" data-cue-index="13" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but imagine that you needed to do </span></div><div aria-label="toggle video from 100 calculations that were this simple." class="rc-Phrase css-ugczj4" data-cue="15" data-cue-index="14" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">100 calculations that were this simple. </span></div><div aria-label="toggle video from You could do it, and if you are" class="rc-Phrase css-ugczj4" data-cue="16" data-cue-index="15" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">You could do it, and if you are </span></div><div aria-label="toggle video from careful you might not make any mistakes." class="rc-Phrase css-ugczj4" data-cue="17" data-cue-index="16" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">careful you might not make any mistakes. </span></div><div aria-label="toggle video from What if you needed to do 1,000 of these calculations?" class="rc-Phrase css-ugczj4" data-cue="18" data-cue-index="17" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">What if you needed to do 1,000 of these calculations? </span></div><div aria-label="toggle video from How about a million?" class="rc-Phrase css-ugczj4" data-cue="19" data-cue-index="18" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">How about a million? </span></div><div aria-label="toggle video from How about a billion? This is" class="rc-Phrase css-ugczj4" data-cue="20" data-cue-index="19" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">How about a billion? This is </span></div><div aria-label="toggle video from exactly what a computer does." class="rc-Phrase css-ugczj4" data-cue="21" data-cue-index="20" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">exactly what a computer does. </span></div><div aria-label="toggle video from A computer simply compares ones and zeros," class="rc-Phrase css-ugczj4" data-cue="22" data-cue-index="21" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">A computer simply compares ones and zeros, </span></div><div aria-label="toggle video from but millions or billions of times per second." class="rc-Phrase css-ugczj4" data-cue="23" data-cue-index="22" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but millions or billions of times per second. </span></div><div aria-label="toggle video from [inaudible]. The communication that a computer uses is" class="rc-Phrase css-ugczj4" data-cue="24" data-cue-index="23" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">\[inaudible\]. The communication that a computer uses is </span></div><div aria-label="toggle video from referred to as binary system," class="rc-Phrase css-ugczj4" data-cue="25" data-cue-index="24" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">referred to as binary system, </span></div><div aria-label="toggle video from also known as base-2 numeral system." class="rc-Phrase css-ugczj4" data-cue="26" data-cue-index="25" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">also known as base-2 numeral system. </span></div><div aria-label="toggle video from This means that it only talks in ones and zeros." class="rc-Phrase css-ugczj4" data-cue="27" data-cue-index="26" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">This means that it only talks in ones and zeros. </span></div><div aria-label="toggle video from You may be thinking," class="rc-Phrase css-ugczj4" data-cue="28" data-cue-index="27" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">You may be thinking, </span></div><div aria-label="toggle video from my computer only talks in ones and zeros." class="rc-Phrase css-ugczj4" data-cue="29" data-cue-index="28" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">my computer only talks in ones and zeros. </span></div><div aria-label="toggle video from How do I communicate with it? Think of it like this." class="rc-Phrase css-ugczj4" data-cue="30" data-cue-index="29" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">How do I communicate with it? Think of it like this. </span></div><div aria-label="toggle video from We use the letters of the alphabet to" class="rc-Phrase css-ugczj4" data-cue="31" data-cue-index="30" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">We use the letters of the alphabet to </span></div><div aria-label="toggle video from form words and we give those words meaning." class="rc-Phrase css-ugczj4" data-cue="32" data-cue-index="31" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">form words and we give those words meaning. </span></div><div aria-label="toggle video from We use them to create sentences," class="rc-Phrase css-ugczj4" data-cue="33" data-cue-index="32" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">We use them to create sentences, </span></div><div aria-label="toggle video from paragraphs and whole stories." class="rc-Phrase css-ugczj4" data-cue="34" data-cue-index="33" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">paragraphs and whole stories. </span></div><div aria-label="toggle video from The same thing applies to binary," class="rc-Phrase css-ugczj4" data-cue="35" data-cue-index="34" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">The same thing applies to binary, </span></div><div aria-label="toggle video from except instead of A, B, C," class="rc-Phrase css-ugczj4" data-cue="36" data-cue-index="35" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">except instead of A, B, C, </span></div><div aria-label="toggle video from and so on, we only have zero" class="rc-Phrase css-ugczj4" data-cue="37" data-cue-index="36" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">and so on, we only have zero </span></div><div aria-label="toggle video from and one to create words that we give meaning to." class="rc-Phrase css-ugczj4" data-cue="38" data-cue-index="37" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">and one to create words that we give meaning to. </span></div><div aria-label="toggle video from In computing terms, we group" class="rc-Phrase css-ugczj4" data-cue="39" data-cue-index="38" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">In computing terms, we group </span></div><div aria-label="toggle video from binary into eight numbers or bits." class="rc-Phrase css-ugczj4" data-cue="40" data-cue-index="39" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">binary into eight numbers or bits. </span></div><div aria-label="toggle video from Technically, a bit is a binary digit." class="rc-Phrase css-ugczj4" data-cue="41" data-cue-index="40" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Technically, a bit is a binary digit. </span></div><div aria-label="toggle video from Historically, we use" class="rc-Phrase css-ugczj4" data-cue="42" data-cue-index="41" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Historically, we use </span></div><div aria-label="toggle video from eight bits because in the early days of computing," class="rc-Phrase css-ugczj4" data-cue="43" data-cue-index="42" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">eight bits because in the early days of computing, </span></div><div aria-label="toggle video from hardware utilized the base-2 numeral system" class="rc-Phrase css-ugczj4" data-cue="44" data-cue-index="43" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">hardware utilized the base-2 numeral system </span></div><div aria-label="toggle video from to move bits around." class="rc-Phrase css-ugczj4" data-cue="45" data-cue-index="44" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">to move bits around. </span></div><div aria-label="toggle video from Two to the eighth numbers offered us" class="rc-Phrase css-ugczj4" data-cue="46" data-cue-index="45" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Two to the eighth numbers offered us </span></div><div aria-label="toggle video from a large enough range of" class="rc-Phrase css-ugczj4" data-cue="47" data-cue-index="46" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a large enough range of </span></div><div aria-label="toggle video from values to do the computing we needed." class="rc-Phrase css-ugczj4" data-cue="48" data-cue-index="47" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">values to do the computing we needed. </span></div><div aria-label="toggle video from Back then, any number of bits was used," class="rc-Phrase css-ugczj4" data-cue="49" data-cue-index="48" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Back then, any number of bits was used, </span></div><div aria-label="toggle video from but eventually the grouping of eight bits" class="rc-Phrase css-ugczj4" data-cue="50" data-cue-index="49" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but eventually the grouping of eight bits </span></div><div aria-label="toggle video from became the industry standard that we use today." class="rc-Phrase css-ugczj4" data-cue="51" data-cue-index="50" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">became the industry standard that we use today. </span></div><div aria-label="toggle video from You should know that a group of eight bits" class="rc-Phrase css-ugczj4" data-cue="52" data-cue-index="51" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">You should know that a group of eight bits </span></div><div aria-label="toggle video from is referred to as a byte." class="rc-Phrase css-ugczj4" data-cue="53" data-cue-index="52" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">is referred to as a byte. </span></div><div aria-label="toggle video from A byte of zeros and ones could look like 10011011." class="rc-Phrase css-ugczj4" data-cue="54" data-cue-index="53" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">A byte of zeros and ones could look like 10011011. </span></div><div aria-label="toggle video from Each byte can store one character," class="rc-Phrase css-ugczj4" data-cue="55" data-cue-index="54" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Each byte can store one character, </span></div><div aria-label="toggle video from and we can have 256 possible values" class="rc-Phrase css-ugczj4" data-cue="56" data-cue-index="55" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">and we can have 256 possible values </span></div><div aria-label="toggle video from thanks that a base-2 system, two to the eighth." class="rc-Phrase css-ugczj4" data-cue="57" data-cue-index="56" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">thanks that a base-2 system, two to the eighth. </span></div><div aria-label="toggle video from In computer talk, this byte" class="rc-Phrase css-ugczj4" data-cue="58" data-cue-index="57" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">In computer talk, this byte </span></div><div aria-label="toggle video from can mean something like the letter" class="rc-Phrase css-ugczj4" data-cue="59" data-cue-index="58" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">can mean something like the letter </span></div><div aria-label="toggle video from c. This is how a computer language is born." class="rc-Phrase css-ugczj4" data-cue="60" data-cue-index="59" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">c. This is how a computer language is born. </span></div><div aria-label="toggle video from Let's make a quick table to translate something" class="rc-Phrase css-ugczj4" data-cue="61" data-cue-index="60" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Let's make a quick table to translate something </span></div><div aria-label="toggle video from a computer might see" class="rc-Phrase css-ugczj4" data-cue="62" data-cue-index="61" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a computer might see </span></div><div aria-label="toggle video from into something we'd be able to recognize." class="rc-Phrase css-ugczj4" data-cue="63" data-cue-index="62" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">into something we'd be able to recognize. </span></div><div aria-label="toggle video from What does the following translate to?" class="rc-Phrase css-ugczj4" data-cue="64" data-cue-index="63" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">What does the following translate to? </span></div><div aria-label="toggle video from Did you get hello? Pretty cool." class="rc-Phrase css-ugczj4" data-cue="65" data-cue-index="64" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Did you get hello? Pretty cool. </span></div><div aria-label="toggle video from By using binary, we can have" class="rc-Phrase css-ugczj4" data-cue="66" data-cue-index="65" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">By using binary, we can have </span></div><div aria-label="toggle video from unlimited communication with our computer." class="rc-Phrase css-ugczj4" data-cue="67" data-cue-index="66" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">unlimited communication with our computer. </span></div><div aria-label="toggle video from Everything you see on your computer right now," class="rc-Phrase css-ugczj4" data-cue="68" data-cue-index="67" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Everything you see on your computer right now, </span></div><div aria-label="toggle video from whether it's a video," class="rc-Phrase css-ugczj4" data-cue="69" data-cue-index="68" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">whether it's a video, </span></div><div aria-label="toggle video from an image, texts or anything else," class="rc-Phrase css-ugczj4" data-cue="70" data-cue-index="69" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">an image, texts or anything else, </span></div><div aria-label="toggle video from is nothing more than a one or a zero." class="rc-Phrase css-ugczj4" data-cue="71" data-cue-index="70" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">is nothing more than a one or a zero. </span></div><div aria-label="toggle video from It is important that you understand how binary works." class="rc-Phrase css-ugczj4" data-cue="72" data-cue-index="71" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It is important that you understand how binary works. </span></div><div aria-label="toggle video from It is the basis for everything" class="rc-Phrase css-ugczj4" data-cue="73" data-cue-index="72" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It is the basis for everything </span></div><div aria-label="toggle video from else we'll do in this course." class="rc-Phrase css-ugczj4" data-cue="74" data-cue-index="73" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">else we'll do in this course. </span></div><div aria-label="toggle video from Make sure you understand the concept before moving on." class="rc-Phrase css-ugczj4" data-cue="75" data-cue-index="74" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Make sure you understand the concept before moving on. </span></div></div>

# Character Encoding

<div class="phrases" id="bkmrk-by-the-end-of-this-v"><div aria-label="toggle video from By the end of this video," class="rc-Phrase css-ugczj4" data-cue="1" data-cue-index="0" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">By the end of this video, </span></div><div aria-label="toggle video from current lecture segment: you'll learn how we can represent the words, numbers," class="rc-Phrase active css-ugczj4" data-cue="2" data-cue-index="1" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">you'll learn how we can represent the words, numbers, </span></div><div aria-label="toggle video from emojis, and more we see on our screens from" class="rc-Phrase css-ugczj4" data-cue="3" data-cue-index="2" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">emojis, and more we see on our screens from </span></div><div aria-label="toggle video from only these 256 possible values." class="rc-Phrase css-ugczj4" data-cue="4" data-cue-index="3" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">only these 256 possible values. </span></div><div aria-label="toggle video from It's all thanks to character encoding." class="rc-Phrase css-ugczj4" data-cue="5" data-cue-index="4" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It's all thanks to character encoding. </span></div><div aria-label="toggle video from Character encoding is used to assign" class="rc-Phrase css-ugczj4" data-cue="6" data-cue-index="5" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Character encoding is used to assign </span></div><div aria-label="toggle video from our binary values to" class="rc-Phrase css-ugczj4" data-cue="7" data-cue-index="6" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">our binary values to </span></div><div aria-label="toggle video from characters so that we as humans can read them." class="rc-Phrase css-ugczj4" data-cue="8" data-cue-index="7" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">characters so that we as humans can read them. </span></div><div aria-label="toggle video from We definitely wouldn't want to see" class="rc-Phrase css-ugczj4" data-cue="9" data-cue-index="8" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">We definitely wouldn't want to see </span></div><div aria-label="toggle video from all the texts in our emails in" class="rc-Phrase css-ugczj4" data-cue="10" data-cue-index="9" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">all the texts in our emails in </span></div><div aria-label="toggle video from webpages rendered in complex sequences of zeros and ones." class="rc-Phrase css-ugczj4" data-cue="11" data-cue-index="10" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">webpages rendered in complex sequences of zeros and ones. </span></div><div aria-label="toggle video from This is where character encodings come in handy." class="rc-Phrase css-ugczj4" data-cue="12" data-cue-index="11" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">This is where character encodings come in handy. </span></div><div aria-label="toggle video from You can think of character encoding as a dictionary." class="rc-Phrase css-ugczj4" data-cue="13" data-cue-index="12" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">You can think of character encoding as a dictionary. </span></div><div aria-label="toggle video from It's a way for your computers to look up" class="rc-Phrase css-ugczj4" data-cue="14" data-cue-index="13" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It's a way for your computers to look up </span></div><div aria-label="toggle video from which human character should be" class="rc-Phrase css-ugczj4" data-cue="15" data-cue-index="14" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">which human character should be </span></div><div aria-label="toggle video from represented by a given binary value." class="rc-Phrase css-ugczj4" data-cue="16" data-cue-index="15" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">represented by a given binary value. </span></div><div aria-label="toggle video from The oldest character encoding standard used is ASCII." class="rc-Phrase css-ugczj4" data-cue="17" data-cue-index="16" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">The oldest character encoding standard used is ASCII. </span></div><div aria-label="toggle video from It represents the English alphabet," class="rc-Phrase css-ugczj4" data-cue="18" data-cue-index="17" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It represents the English alphabet, </span></div><div aria-label="toggle video from digits, and punctuation marks." class="rc-Phrase css-ugczj4" data-cue="19" data-cue-index="18" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">digits, and punctuation marks. </span></div><div aria-label="toggle video from The first character in the ASCII to" class="rc-Phrase css-ugczj4" data-cue="20" data-cue-index="19" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">The first character in the ASCII to </span></div><div aria-label="toggle video from binary table, a lowercase a," class="rc-Phrase css-ugczj4" data-cue="21" data-cue-index="20" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">binary table, a lowercase a, </span></div><div aria-label="toggle video from maps to 01100001 in binary." class="rc-Phrase css-ugczj4" data-cue="22" data-cue-index="21" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">maps to 01100001 in binary. </span></div><div aria-label="toggle video from This is done for all the characters" class="rc-Phrase css-ugczj4" data-cue="23" data-cue-index="22" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">This is done for all the characters </span></div><div aria-label="toggle video from you can find in the English alphabet," class="rc-Phrase css-ugczj4" data-cue="24" data-cue-index="23" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">you can find in the English alphabet, </span></div><div aria-label="toggle video from as well as numbers and some special symbols." class="rc-Phrase css-ugczj4" data-cue="25" data-cue-index="24" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">as well as numbers and some special symbols. </span></div><div aria-label="toggle video from The great thing with ASCII was that we only needed to use" class="rc-Phrase css-ugczj4" data-cue="26" data-cue-index="25" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">The great thing with ASCII was that we only needed to use </span></div><div aria-label="toggle video from 127 values out of our possible 256." class="rc-Phrase css-ugczj4" data-cue="27" data-cue-index="26" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">127 values out of our possible 256. </span></div><div aria-label="toggle video from It lasted for a very long time," class="rc-Phrase css-ugczj4" data-cue="28" data-cue-index="27" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It lasted for a very long time, </span></div><div aria-label="toggle video from but eventually, it wasn't enough." class="rc-Phrase css-ugczj4" data-cue="29" data-cue-index="28" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but eventually, it wasn't enough. </span></div><div aria-label="toggle video from Other character encoding standards were" class="rc-Phrase css-ugczj4" data-cue="30" data-cue-index="29" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Other character encoding standards were </span></div><div aria-label="toggle video from created to represent different languages," class="rc-Phrase css-ugczj4" data-cue="31" data-cue-index="30" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">created to represent different languages, </span></div><div aria-label="toggle video from different amounts of characters, and more." class="rc-Phrase css-ugczj4" data-cue="32" data-cue-index="31" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">different amounts of characters, and more. </span></div><div aria-label="toggle video from Eventually, they would require" class="rc-Phrase css-ugczj4" data-cue="33" data-cue-index="32" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Eventually, they would require </span></div><div aria-label="toggle video from more than 256 values we are allowed to have." class="rc-Phrase css-ugczj4" data-cue="34" data-cue-index="33" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">more than 256 values we are allowed to have. </span></div><div aria-label="toggle video from Then came UTF-8," class="rc-Phrase css-ugczj4" data-cue="35" data-cue-index="34" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Then came UTF-8, </span></div><div aria-label="toggle video from the most prevalent encoding standard used today." class="rc-Phrase css-ugczj4" data-cue="36" data-cue-index="35" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the most prevalent encoding standard used today. </span></div><div aria-label="toggle video from Along with having the same ASCII table," class="rc-Phrase css-ugczj4" data-cue="37" data-cue-index="36" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Along with having the same ASCII table, </span></div><div aria-label="toggle video from it also lets us use a variable number of bytes." class="rc-Phrase css-ugczj4" data-cue="38" data-cue-index="37" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">it also lets us use a variable number of bytes. </span></div><div aria-label="toggle video from What do I mean by that? Think of any emoji." class="rc-Phrase css-ugczj4" data-cue="39" data-cue-index="38" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">What do I mean by that? Think of any emoji. </span></div><div aria-label="toggle video from It's not possible to make emojis with" class="rc-Phrase css-ugczj4" data-cue="40" data-cue-index="39" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It's not possible to make emojis with </span></div><div aria-label="toggle video from a single byte since we can" class="rc-Phrase css-ugczj4" data-cue="41" data-cue-index="40" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a single byte since we can </span></div><div aria-label="toggle video from only store one character in a byte." class="rc-Phrase css-ugczj4" data-cue="42" data-cue-index="41" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">only store one character in a byte. </span></div><div aria-label="toggle video from Instead, UTF-8 allows us to" class="rc-Phrase css-ugczj4" data-cue="43" data-cue-index="42" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Instead, UTF-8 allows us to </span></div><div aria-label="toggle video from store a character in more than one byte," class="rc-Phrase css-ugczj4" data-cue="44" data-cue-index="43" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">store a character in more than one byte, </span></div><div aria-label="toggle video from which means endless emoji fun." class="rc-Phrase css-ugczj4" data-cue="45" data-cue-index="44" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">which means endless emoji fun. </span></div><div aria-label="toggle video from UTF-8 is built off the Unicode Standard." class="rc-Phrase css-ugczj4" data-cue="46" data-cue-index="45" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">UTF-8 is built off the Unicode Standard. </span></div><div aria-label="toggle video from We won't go into much detail," class="rc-Phrase css-ugczj4" data-cue="47" data-cue-index="46" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">We won't go into much detail, </span></div><div aria-label="toggle video from but the Unicode Standard helps us" class="rc-Phrase css-ugczj4" data-cue="48" data-cue-index="47" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but the Unicode Standard helps us </span></div><div aria-label="toggle video from represent character encoding in a consistent manner." class="rc-Phrase css-ugczj4" data-cue="49" data-cue-index="48" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">represent character encoding in a consistent manner. </span></div><div aria-label="toggle video from Now that we've been able to represent letters, numbers," class="rc-Phrase css-ugczj4" data-cue="50" data-cue-index="49" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Now that we've been able to represent letters, numbers, </span></div><div aria-label="toggle video from punctuation marks, and even emojis," class="rc-Phrase css-ugczj4" data-cue="51" data-cue-index="50" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">punctuation marks, and even emojis, </span></div><div aria-label="toggle video from how do we represent color?" class="rc-Phrase css-ugczj4" data-cue="52" data-cue-index="51" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">how do we represent color? </span></div><div aria-label="toggle video from Well, there are all kinds of color models." class="rc-Phrase css-ugczj4" data-cue="53" data-cue-index="52" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Well, there are all kinds of color models. </span></div><div aria-label="toggle video from For now, let's stick to a basic one" class="rc-Phrase css-ugczj4" data-cue="54" data-cue-index="53" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">For now, let's stick to a basic one </span></div><div aria-label="toggle video from that's used in a lot of computers," class="rc-Phrase css-ugczj4" data-cue="55" data-cue-index="54" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">that's used in a lot of computers, </span></div><div aria-label="toggle video from RGB or red, green, and blue model." class="rc-Phrase css-ugczj4" data-cue="56" data-cue-index="55" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">RGB or red, green, and blue model. </span></div><div aria-label="toggle video from Just like the actual colors," class="rc-Phrase css-ugczj4" data-cue="57" data-cue-index="56" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Just like the actual colors, </span></div><div aria-label="toggle video from if you mix a combination of any of these," class="rc-Phrase css-ugczj4" data-cue="58" data-cue-index="57" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">if you mix a combination of any of these, </span></div><div aria-label="toggle video from you'll be able to get the full range of colors." class="rc-Phrase css-ugczj4" data-cue="59" data-cue-index="58" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">you'll be able to get the full range of colors. </span></div><div aria-label="toggle video from In computer learn," class="rc-Phrase css-ugczj4" data-cue="60" data-cue-index="59" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">In computer learn, </span></div><div aria-label="toggle video from we use three characters for the RGB model." class="rc-Phrase css-ugczj4" data-cue="61" data-cue-index="60" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">we use three characters for the RGB model. </span></div><div aria-label="toggle video from Each character represents a shade of the color," class="rc-Phrase css-ugczj4" data-cue="62" data-cue-index="61" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Each character represents a shade of the color, </span></div><div aria-label="toggle video from and that then changes the color" class="rc-Phrase css-ugczj4" data-cue="63" data-cue-index="62" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">and that then changes the color </span></div><div aria-label="toggle video from of the pixel you see on your screen." class="rc-Phrase css-ugczj4" data-cue="64" data-cue-index="63" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">of the pixel you see on your screen. </span></div><div aria-label="toggle video from With just eight combinations of zeros and ones," class="rc-Phrase css-ugczj4" data-cue="65" data-cue-index="64" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">With just eight combinations of zeros and ones, </span></div><div aria-label="toggle video from we're able to represent everything" class="rc-Phrase css-ugczj4" data-cue="66" data-cue-index="65" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">we're able to represent everything </span></div><div aria-label="toggle video from that you see on your computer from" class="rc-Phrase css-ugczj4" data-cue="67" data-cue-index="66" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">that you see on your computer from </span></div><div aria-label="toggle video from a simple letter a to the very video" class="rc-Phrase css-ugczj4" data-cue="68" data-cue-index="67" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a simple letter a to the very video </span></div><div aria-label="toggle video from that you're watching right now. Very cool." class="rc-Phrase css-ugczj4" data-cue="69" data-cue-index="68" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">that you're watching right now. Very cool. </span></div></div>

# Binary

<div class="cds-1 css-arowdh cds-3 cds-grid-item cds-48 cds-73" id="bkmrk-you-might-be-wonderi"><div><div class="rc-TranscriptHighlighter css-79elbk"><div class="rc-Transcript css-9li235" data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="interactive_transcript" data-track-page="item_layout" role="presentation"><div class="cds-1 css-xl5mb3 cds-2"><div class="cds-1 rc-Paragraph css-ch7t2i cds-3 cds-grid-item"><div class="phrases"><div aria-label="toggle video from You might be wondering how are computers" class="rc-Phrase css-ugczj4" data-cue="1" data-cue-index="0" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">You might be wondering how are computers </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">get these ones and zeros? </span></div><div aria-label="toggle video from It's a pretty question. Imagine we have a light bulb and" class="rc-Phrase css-ugczj4" data-cue="3" data-cue-index="2" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It's a pretty question. Imagine we have a light bulb and </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a switch that turns the state of the light on or off. </span></div><div aria-label="toggle video from If we turn the light on," class="rc-Phrase css-ugczj4" data-cue="5" data-cue-index="4" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">If we turn the light on, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">we can denote that state is one, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">if the light bulb is off, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">we can represent the state as zero. </span></div><div aria-label="toggle video from Now imagine eight light bulbs and switches that" class="rc-Phrase css-ugczj4" data-cue="9" data-cue-index="8" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Now imagine eight light bulbs and switches that </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">represents eight bits with a state of zero or one. </span></div><div aria-label="toggle video from Let's backtrack to the punch cards" class="rc-Phrase css-ugczj4" data-cue="11" data-cue-index="10" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Let's backtrack to the punch cards </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">that were used in Jacquard's loom. </span></div><div aria-label="toggle video from Remember that the loom use cards with holes in them." class="rc-Phrase css-ugczj4" data-cue="13" data-cue-index="12" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Remember that the loom use cards with holes in them. </span></div><div aria-label="toggle video from Remember that the loom use cards with holes in them." class="rc-Phrase css-ugczj4" data-cue="13" data-cue-index="12" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">When the loom would reach a hole, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">it would hook to thread underneath, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">meaning that the loom was on. </span></div><div aria-label="toggle video from If there wasn't a hole," class="rc-Phrase css-ugczj4" data-cue="17" data-cue-index="16" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">If there wasn't a hole, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">it would not hook the thread, so it was off. </span></div><div aria-label="toggle video from This is a foundational binary concept." class="rc-Phrase css-ugczj4" data-cue="19" data-cue-index="18" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">This is a foundational binary concept. </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">By utilizing the two states of on or off, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Jacquard was able to weave </span></div><div aria-label="toggle video from intricate patterns into fabric with his looms." class="rc-Phrase css-ugczj4" data-cue="22" data-cue-index="21" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">intricate patterns into fabric with his looms. </span></div><div aria-label="toggle video from Then the industry started" class="rc-Phrase css-ugczj4" data-cue="23" data-cue-index="22" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Then the industry started </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">refining the punch-cards a little more. </span></div><div aria-label="toggle video from Where there was a whole," class="rc-Phrase css-ugczj4" data-cue="25" data-cue-index="24" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Where there was a whole, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the computer would read one, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">if there wasn't a hole, it would read zero. </span></div><div aria-label="toggle video from Then by just translating" class="rc-Phrase css-ugczj4" data-cue="28" data-cue-index="27" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Then by just translating </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the combination of zeros and ones, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">a computer could calculate </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">any possible amount of numbers. </span></div><div aria-label="toggle video from Binary in today's computer isn't done by reading holes." class="rc-Phrase css-ugczj4" data-cue="32" data-cue-index="31" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Binary in today's computer isn't done by reading holes. </span></div><div aria-label="toggle video from It uses electricity via" class="rc-Phrase css-ugczj4" data-cue="33" data-cue-index="32" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">It uses electricity via </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">transistors allowing electrical signals to pass through. </span></div><div aria-label="toggle video from If there's an electric voltage," class="rc-Phrase css-ugczj4" data-cue="35" data-cue-index="34" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">If there's an electric voltage, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">we would denote it as one, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">if there isn't, we would denote it by zero. </span></div><div aria-label="toggle video from But just having transistors isn't enough for" class="rc-Phrase css-ugczj4" data-cue="38" data-cue-index="37" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">But just having transistors isn't enough for </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">our computer to be able to do complex tasks. </span></div><div aria-label="toggle video from Imagine if you had two light" class="rc-Phrase css-ugczj4" data-cue="40" data-cue-index="39" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Imagine if you had two light </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">switches opposite ends of a room, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">each controlling of light in the room. </span></div><div aria-label="toggle video from What if when you went to turn" class="rc-Phrase css-ugczj4" data-cue="43" data-cue-index="42" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">What if when you went to turn </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">on the light with one switch, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the other switch wouldn't turn off? </span></div><div aria-label="toggle video from That'll be a very poorly designed room." class="rc-Phrase css-ugczj4" data-cue="46" data-cue-index="45" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">That'll be a very poorly designed room. </span></div><div aria-label="toggle video from Both switches should either turn the light on or off," class="rc-Phrase css-ugczj4" data-cue="47" data-cue-index="46" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Both switches should either turn the light on or off, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">depending on the state of the light. </span></div><div aria-label="toggle video from Fortunately, we have something known as logic gates." class="rc-Phrase css-ugczj4" data-cue="49" data-cue-index="48" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Fortunately, we have something known as logic gates. </span></div><div aria-label="toggle video from Logic gates allow our transistors" class="rc-Phrase css-ugczj4" data-cue="50" data-cue-index="49" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Logic gates allow our transistors </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">to do more complex tasks like </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">decide where to send electrical signals </span></div><div aria-label="toggle video from depending on logical conditions." class="rc-Phrase css-ugczj4" data-cue="53" data-cue-index="52" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">depending on logical conditions. </span></div><div aria-label="toggle video from depending on logical conditions." class="rc-Phrase css-ugczj4" data-cue="53" data-cue-index="52" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">There are lots of different types of logic gates, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">but we won't discuss them in detail here. </span></div><div aria-label="toggle video from If you're curious about the role that" class="rc-Phrase css-ugczj4" data-cue="56" data-cue-index="55" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">If you're curious about the role that </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">transistors and logic gates play in modern circuitry, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">you can read more about it in the supplementary reading. </span></div><div aria-label="toggle video from Now we know how our computer gets it's ones and" class="rc-Phrase css-ugczj4" data-cue="59" data-cue-index="58" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Now we know how our computer gets it's ones and </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">zeros to calculate into meaningful instructions. </span></div><div aria-label="toggle video from Later in this course, we're going to be" class="rc-Phrase css-ugczj4" data-cue="61" data-cue-index="60" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">Later in this course, we're going to be </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">able to talk about how we're able to </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">turn human-readable instructions into zeros </span></div><div aria-label="toggle video from and ones that our computer understands through compilers." class="rc-Phrase css-ugczj4" data-cue="64" data-cue-index="63" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">and ones that our computer understands through compilers. </span></div><div aria-label="toggle video from That's one of the very basic building blocks of" class="rc-Phrase css-ugczj4" data-cue="65" data-cue-index="64" role="button" tabindex="0"><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">That's one of the very basic building blocks of </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">programming that's led to </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">the creation of our favorite social media sites, </span><span aria-hidden="true" class="cds-137 css-1j071wf cds-139">video games, and just about everything else. </span></div></div></div></div></div></div></div></div><div class="cds-1 css-hcqebr cds-3 cds-grid-item cds-48 cds-66" id="bkmrk-%28required%29"><div class="cds-508 cds-formControl-root css-1834zxd cds-511"></div></div><div class="cds-508 cds-formControl-root css-1834zxd cds-511" id="bkmrk-%E2%80%8B"><div class="cds-546 cds-531 cds-input-root cds-input-onLight cds-select-field-root css-14fuxgf cds-547"><fieldset aria-hidden="true" class="cds-568 cds-540 cds-input-notchedOutline" style="padding-left: 8px;"></fieldset></div></div>

# Supplemental Reading on Logic Gates

#   



# <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Logic Gates</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Knowing how logic gates work is important to understanding how a computer works. Computers work by performing binary calculations. </span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**Logic gates**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> are electrical components that tell a computer how to perform binary calculations. They specify rules for how to produce an electrical output based on one or more electrical inputs. Computers use these electrical signals to represent two binary states: either an “on” state or an “off” state. A logic gate takes in one or more of these binary states and determines whether to pass along an “on” or “off” signal.</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Several logic gates have been developed to represent different rules for producing a binary output. This reading covers six of the most common logic gates. </span>

# <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Six common logic gates</span>

### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**NOT gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The NOT gate is the simplest because it has only one input signal. The NOT gate takes that input signal and outputs a signal with the opposite binary state. If the input signal is “on,” a NOT gate outputs an “off” signal. If the input signal is “off,” a NOT gate outputs an “on” signal. All the logic gates can be defined using a schematic diagram and truth table. Here’s how this logic rule is often represented:</span>

<div class="rc-CML" dir="auto" id="bkmrk--1" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![Not gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/tk5lDPnpRN-OZQz56QTflw_58ca55ecf59146549c08a532acc0d9f1_01_NOT-Gate-copy.png?expiry=1685491200000&hmac=l_qhzvcSN7QSYGUMDo8UgKEmteC6o99b5myP2MeOoFs)</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">On the left, you have a schematic diagram of a NOT gate. Schematic drawings usually represent a physical NOT gate as a triangle with a small circle on the output side of the gate. To the right of the schematic diagram, you also have a “truth table” that tells you the output value for each of the two possible input values.</span>

### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**AND gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The AND gate involves two input signals rather than just one. Having two input signals means there will be four possible combinations of input values. The AND rule outputs an “on” signal only when both the inputs are “on.” Otherwise, the output signal will be “off.”</span>

<div class="rc-CML" dir="auto" id="bkmrk--2" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![AND gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/fOo7WK4oSLiqO1iuKAi4fA_5dc969b7e4fa4c6aacd5b2fcb40cc1f1_02_AND-Gate-.png?expiry=1685491200000&hmac=eV0_5HSzkh_hFY5r0twMh6FITm70fnopU-UWv6_pHDk)</figure></div></div></div></div></div></div></div>### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**OR gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The OR gate involves two input signals. The OR rule outputs an “off” signal only when both the inputs are “off.” Otherwise, the output signal will be “on.”</span>

<div class="rc-CML" dir="auto" id="bkmrk--3" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![OR gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/1WbonYykTgum6J2MpG4Lug_3e5c8850f3084c418327c8f191aba5f1_03_OR-Gate.png?expiry=1685491200000&hmac=M_VSwdP4kU98CTuNqgX0AU1wyhYvqnJQMnR3xOAZByc)</figure></div></div></div></div></div></div></div>### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**XOR Gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The XOR gate also involves two input signals. The XOR rule outputs an “on” signal when </span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">*only one*</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> (but </span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">*not both*</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">) of the inputs are “on.” Otherwise, the output signal will be “off.”</span>

<div class="rc-CML" dir="auto" id="bkmrk--4" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![XOR gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/neK52IssTyyiudiLLF8sYA_3023510a6a0d44b99363a0ea80c1abf1_04_XOR-Gate-.png?expiry=1685491200000&hmac=jq_lE0o5vcfUOXxJrvAWgM1SWtZdgz1phIJUXZXnFmg)</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The truth tables for XOR and OR gates are very similar. The only difference is that the XOR gate outputs an “off” when both inputs are “on” while the OR outputs an “on.” Sometimes you may hear the XOR gate referred to as an “exclusive OR” gate.</span>

### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**NAND gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The NAND gate involves two input signals. The NAND rule outputs an “off” signal only when both the inputs are “on.” Otherwise, the output signal will be “on.”</span>

<div class="rc-CML" dir="auto" id="bkmrk--5" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![NAND gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/4q_pIr_sTgmv6SK_7M4JKg_058ec9f2bc5c45feae7a6a32c34d98f1_NAND-Gate.png?expiry=1685491200000&hmac=ZRZnmQeRizL1GzOikzNN0dlCa_NoTCV13A4ExsSUG2I)</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">If you compare the truth tables for the NAND and AND gates, you may notice that the NAND outputs are the opposite of the AND outputs. This is because the NAND rule is just a combination of the AND and NOT rules: it takes the AND output and runs it through the NOT rule! For this reason, you might hear the NAND referred to as a “not-AND” gate.</span>

### <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">**XNOR gate**</span><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"> </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Finally, consider the XNOR gate. It also involves two input signals. The XNOR rule outputs an “on” signal only when both the inputs are the same (both “On” or both “Off”). Otherwise, the output signal will be “off.”</span>

<div class="rc-CML" dir="auto" id="bkmrk--6" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![XNOR gate schema and truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/_IRg3Rn_R4GEYN0Z_1eB7Q_ec617554b8384e90b70a85256ecdd7f1_XNOR-Gate.png?expiry=1685491200000&hmac=8rGzY7kwpPEmoBWiorne1Qe-MltHMx_TK7T3Lf2m5XQ)</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">The XNOR rule is another combination of two earlier rules: it takes the XOR output and runs it through the NOT rule. For this reason, you might hear the XNOR referred to as a “not-XOR” gate.</span>

# <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Combining gates (building circuits)</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Logic gates are physical electronic components—a person can buy them and plug them into a circuit board. Logic gates can be linked together to create complex electrical systems (circuits) that perform complicated binary calculations. You link gates together by letting the output from one gate serve as an input for another gate or by using the same inputs for multiple gates. Computers are this kind of complex electrical system. </span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Here’s a schematic drawing for a small circuit built with gates described above:</span>

<div class="rc-CML" dir="auto" id="bkmrk--7" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![Combined circuit schematic](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/mWetS5HYRWanrUuR2PVmPQ_ca5e02fc3b414262bee28fa98535a6f1_Circuit-drawing.png?expiry=1685491200000&hmac=vIapyWfDGtFkxbSw4RdRdHxNQC9IpIg3tnCQNU97dp8)</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Here is the truth table for this circuit:</span>

<div class="rc-CML" dir="auto" id="bkmrk--8" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="rc-CML" dir="auto" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(31, 31, 31); font-family: OpenSans, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout" style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><div class="css-18w79dz" data-testid="cml-viewer" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; white-space: pre-wrap; overflow-wrap: break-word;"><div style="box-sizing: border-box; -webkit-font-smoothing: antialiased;"><figure contenteditable="false" role="figure" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; display: block; margin: 0px !important;">![Combined circuit truth table](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/6Qqgqn8zRw-KoKp_MwcPGA_ade69bff97924d6291e174ba63ab65f1_Circuit-Truth-table.png?expiry=1685491200000&hmac=lWA9Mlr6zgZXJGDb8WFAqyHFmrX4dIbJWYqnXISldGc)

</figure></div></div></div></div></div></div></div><span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">This circuit uses three logic gates: an XOR gate, a NOT gate, and an AND gate. It takes two inputs (A and B) and produces two outputs (1 and 2). A and B are the inputs for the XOR gate. The output of that gate became the input of the NOT gate. Then, the output of the NOT gate became an input for the AND gate (with input A as the other). Output 1 is the output from the AND gate. Output 2 is the output from the XOR gate. </span>

# <span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Key takeaways</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Logic gates are the physical components that allow computers to make binary calculations.</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Logic gates represent different rules for taking one or more binary inputs and outputting a specific binary value (“on” or “off”).</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Logic gates can be linked so that the output of one gate serves as the input for other gates.</span>

<span style="box-sizing: border-box; -webkit-font-smoothing: antialiased;">Circuits are complex electrical systems built by linking logic gates together. Computers are this kind of complex electrical system.</span>

# How to Count in Binary

Binary is the fundamental communication block of computers, but it's used to represent more than just text and images. It's used in many aspects of computing, like computer networking, what you'll learn about in a later course. It's important that you understand how computers count in binary. We've shown you simple look up tables that you can use like the ASCII binary table. But as an IT support specialist whether you're working on networking or security, you'll need to know how binary works, so let's get started. You'll probably need a trusty pen and paper, a calculator and some good old fashioned brainpower to help you in this video. The binary system is how our computers count using 1s and 0s, but humans don't count like that. When you were a child you may have counted using ten fingers on your hand, that innate counting system is called the decimal form or base ten system. In the decimal system there are ten possible numbers you can use ranging from 0 to 9. When we count binary which only uses 0 and 1, we convert it to a system that we can understand, decimal. 330, 250 to 44 million, they're all decimal numbers. We use the decimal system to help us figure out what bits our computer can use. We can represent any number in existence just by using bits. That's right, we can represent this number just using ones and zeros, so how does that work? Let's consider these numbers, 128, 64, 32, 16, 8, 4, 2 and 1, what patterns do you see? Hopefully you'll see that each number is a double of the previous number going right to left, what happens if you add them all up? You get 255, that's kind of weird, I thought we could have 256 values for a byte. Well, we do, the 0 is counted as a value, so the maximum decibel number you can have is 255. What do you think the number is represented here? See where the 1s and the 0s are represented? Remember, if our computers use the 1 then the value was on, if it sees a 0 then the value was off. If you add these numbers up you'll get a decimal value. If you guess 10, then you're right, good job, if you didn't get it, that's okay too, take another look. The 2 and 8 are on and if we add them up we get 10. Let's look at our ASCII binary table again, the letter h in binary is 01101000. Now let's look at an ASCII to decimal table. The letter h and decimal is 104. Now let's try our conversion chart again, 64+32+8=104. Look at that, the math checks out. Now we're cooking, wow, we've gone over all the essentials of the basic building blocks of computing and machine language.