Binary is a number system with only two values, one and zero. Individual binary numbers are the same as bool values and are called bits. single bit binary numbers can only represent two numbers. But when we combine two bits, we can represent four numbers. A three bit binary number can represent eight numbers, four bit 16, numbers and so on. The values of each column from right to left increased by a power of two.
For a one in the first column is actually worth two to the power of four, or 16. We'll use binary numbers with five bits in our project, because our project has 27 elements and with five bits, we can have 32 numbers We set the underscore to zero, a two one, B Two, two, and so on. To make our barcode we'll use strips of tape on the floor. white tape represents zero and black tape a one. Therefore, if you want to write see for instance, your type sequence should be black, black, white, white, white. We read it right to left because the smallest binary column is on the right.
There is a link below the lesson which you can follow if you feel you need to learn more about binary