Learn

All right! Time to practice counting in binary.

To make sure you’ve got the hang of it, fill out the rest of the numbers all the way up to twelve. Please do not use the str() method or any other outside functions.

Here are a few numbers that will be good to know going forward -

2 ** 0 = 1 2 ** 1 = 2 2 ** 2 = 4 2 ** 3 = 8 2 ** 4 = 16 2 ** 5 = 32 2 ** 6 = 64 2 ** 7 = 128 2 ** 8 = 256 2 ** 9 = 512 2 ** 10 = 1024

You may recognize these numbers. Do you have a 32 or 64 bit system? Does your computer have a 256GB hard drive? Computers think in binary!

Instructions

1.

Fill out the rest of the numbers with their corresponding binary values up to twelve in the editor to the right, using the 0bxxx format.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?