Codele / How computers think
Everything is switches
Inside a computer there are only tiny switches. Each one is on or off. Watch how four switches can store any number from 0 to 15.
- A bit is one switch: on is 1, off is 0.
- Each place is worth double the one on its right: 8, 4, 2, 1.
- To store a number, switch on the places that add up to it.
- 4 bits count from 0 to 15. 8 bits make a byte and count from 0 to 255.
Loading the playable lesson…