Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Hone your Ciphering Skills | Binary Numeral System
Numeral Systems 101
course content

Course Content

Numeral Systems 101

Numeral Systems 101

1. Binary Numeral System
2. Octal Numeral system
3. Hexadecimal Numeral system
4. Revelation

bookHone your Ciphering Skills

You've passed a lot, congratulations!🥳

Try to do the same, but with other numbers, for instance, you can cipher to binary code the combinations of numbers like the date, let's try it with the 4th of July in the 2010 year, we are going to create a list.

Note

Have you wondered? Binary numbers are stored as a group of bits. For example, 11100 requires 5 bits one bit for each digit, but 100000 requires 6 bites, the 8 bits create 1 byte. It is not brand new information that computers stores billion information, so as it is a smart device, it should have a smart system of storing information. I reckon that your phone has a 64-bit microprocessor means that it stores and gets access to the information in groups of 64 binary digits; can you imagine how much information it deals with? It can be even a billion groups of 64-bit combinations.

12345678910111213141516171819202122
# Defining list for storing the date date = [7,4,2010] print("The initial date is" + " " + str(date[2]) + " " + "year" + " " + str(date[1]) + "th" + " " + "day" + " " + "of" + " " + str(date[0]) + "th"+" "+"month" ) # Creating a list for storing the converted binary date date_bin = [ ] # Iterating through the list for number in date: # Creating list for storing converted binary number binary_number = [ ] # The loop will execute till the number is not null while number != 0: # Counting the remainder of division by two remainder = number % 2 # Appending the remainder for creating binary one binary_number.append(remainder) # This operation allows to decrease number twice and work with the integer part of a new one number = number // 2 # Reversing the list binary_number.reverse() # Appending the resulting binary number for creating binary date date_bin.append(binary_number) print("The date in binary numeral system is",date_bin)
copy
Task
test

Swipe to show code editor

Try to convert something interesting to binary code and look at it! For instance, try to convert the first seven digits of the Fibonacci sequence to the binary code. Follow the algorithm on the right and fill the gaps.

  1. Iterate through the fibs list.
  2. Create empty list fib_binary for storing converted Fibonacci numbers.
  3. Check if fib_decimal variable is 0.
  4. Count the remainder of division fib_decimal variable by 2.
  5. Append the remainder to the fib_binary list.
  6. Make the fib_binary list reversed.
  7. Print the sequence in binary form.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 6
toggle bottom row

bookHone your Ciphering Skills

You've passed a lot, congratulations!🥳

Try to do the same, but with other numbers, for instance, you can cipher to binary code the combinations of numbers like the date, let's try it with the 4th of July in the 2010 year, we are going to create a list.

Note

Have you wondered? Binary numbers are stored as a group of bits. For example, 11100 requires 5 bits one bit for each digit, but 100000 requires 6 bites, the 8 bits create 1 byte. It is not brand new information that computers stores billion information, so as it is a smart device, it should have a smart system of storing information. I reckon that your phone has a 64-bit microprocessor means that it stores and gets access to the information in groups of 64 binary digits; can you imagine how much information it deals with? It can be even a billion groups of 64-bit combinations.

12345678910111213141516171819202122
# Defining list for storing the date date = [7,4,2010] print("The initial date is" + " " + str(date[2]) + " " + "year" + " " + str(date[1]) + "th" + " " + "day" + " " + "of" + " " + str(date[0]) + "th"+" "+"month" ) # Creating a list for storing the converted binary date date_bin = [ ] # Iterating through the list for number in date: # Creating list for storing converted binary number binary_number = [ ] # The loop will execute till the number is not null while number != 0: # Counting the remainder of division by two remainder = number % 2 # Appending the remainder for creating binary one binary_number.append(remainder) # This operation allows to decrease number twice and work with the integer part of a new one number = number // 2 # Reversing the list binary_number.reverse() # Appending the resulting binary number for creating binary date date_bin.append(binary_number) print("The date in binary numeral system is",date_bin)
copy
Task
test

Swipe to show code editor

Try to convert something interesting to binary code and look at it! For instance, try to convert the first seven digits of the Fibonacci sequence to the binary code. Follow the algorithm on the right and fill the gaps.

  1. Iterate through the fibs list.
  2. Create empty list fib_binary for storing converted Fibonacci numbers.
  3. Check if fib_decimal variable is 0.
  4. Count the remainder of division fib_decimal variable by 2.
  5. Append the remainder to the fib_binary list.
  6. Make the fib_binary list reversed.
  7. Print the sequence in binary form.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 6
toggle bottom row

bookHone your Ciphering Skills

You've passed a lot, congratulations!🥳

Try to do the same, but with other numbers, for instance, you can cipher to binary code the combinations of numbers like the date, let's try it with the 4th of July in the 2010 year, we are going to create a list.

Note

Have you wondered? Binary numbers are stored as a group of bits. For example, 11100 requires 5 bits one bit for each digit, but 100000 requires 6 bites, the 8 bits create 1 byte. It is not brand new information that computers stores billion information, so as it is a smart device, it should have a smart system of storing information. I reckon that your phone has a 64-bit microprocessor means that it stores and gets access to the information in groups of 64 binary digits; can you imagine how much information it deals with? It can be even a billion groups of 64-bit combinations.

12345678910111213141516171819202122
# Defining list for storing the date date = [7,4,2010] print("The initial date is" + " " + str(date[2]) + " " + "year" + " " + str(date[1]) + "th" + " " + "day" + " " + "of" + " " + str(date[0]) + "th"+" "+"month" ) # Creating a list for storing the converted binary date date_bin = [ ] # Iterating through the list for number in date: # Creating list for storing converted binary number binary_number = [ ] # The loop will execute till the number is not null while number != 0: # Counting the remainder of division by two remainder = number % 2 # Appending the remainder for creating binary one binary_number.append(remainder) # This operation allows to decrease number twice and work with the integer part of a new one number = number // 2 # Reversing the list binary_number.reverse() # Appending the resulting binary number for creating binary date date_bin.append(binary_number) print("The date in binary numeral system is",date_bin)
copy
Task
test

Swipe to show code editor

Try to convert something interesting to binary code and look at it! For instance, try to convert the first seven digits of the Fibonacci sequence to the binary code. Follow the algorithm on the right and fill the gaps.

  1. Iterate through the fibs list.
  2. Create empty list fib_binary for storing converted Fibonacci numbers.
  3. Check if fib_decimal variable is 0.
  4. Count the remainder of division fib_decimal variable by 2.
  5. Append the remainder to the fib_binary list.
  6. Make the fib_binary list reversed.
  7. Print the sequence in binary form.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

You've passed a lot, congratulations!🥳

Try to do the same, but with other numbers, for instance, you can cipher to binary code the combinations of numbers like the date, let's try it with the 4th of July in the 2010 year, we are going to create a list.

Note

Have you wondered? Binary numbers are stored as a group of bits. For example, 11100 requires 5 bits one bit for each digit, but 100000 requires 6 bites, the 8 bits create 1 byte. It is not brand new information that computers stores billion information, so as it is a smart device, it should have a smart system of storing information. I reckon that your phone has a 64-bit microprocessor means that it stores and gets access to the information in groups of 64 binary digits; can you imagine how much information it deals with? It can be even a billion groups of 64-bit combinations.

12345678910111213141516171819202122
# Defining list for storing the date date = [7,4,2010] print("The initial date is" + " " + str(date[2]) + " " + "year" + " " + str(date[1]) + "th" + " " + "day" + " " + "of" + " " + str(date[0]) + "th"+" "+"month" ) # Creating a list for storing the converted binary date date_bin = [ ] # Iterating through the list for number in date: # Creating list for storing converted binary number binary_number = [ ] # The loop will execute till the number is not null while number != 0: # Counting the remainder of division by two remainder = number % 2 # Appending the remainder for creating binary one binary_number.append(remainder) # This operation allows to decrease number twice and work with the integer part of a new one number = number // 2 # Reversing the list binary_number.reverse() # Appending the resulting binary number for creating binary date date_bin.append(binary_number) print("The date in binary numeral system is",date_bin)
copy
Task
test

Swipe to show code editor

Try to convert something interesting to binary code and look at it! For instance, try to convert the first seven digits of the Fibonacci sequence to the binary code. Follow the algorithm on the right and fill the gaps.

  1. Iterate through the fibs list.
  2. Create empty list fib_binary for storing converted Fibonacci numbers.
  3. Check if fib_decimal variable is 0.
  4. Count the remainder of division fib_decimal variable by 2.
  5. Append the remainder to the fib_binary list.
  6. Make the fib_binary list reversed.
  7. Print the sequence in binary form.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt