Question: 4 . ) Use the following code to convert a list of binary values to a decimal: Print ( int ( 0 b 1 )

4.) Use the following code to convert a list of binary values to a decimal:
Print(int(0b1), int(0b11), int(0b111), int(0b1111), int(0b11111), int(0b111111)
a.) remember the character in front of each input a zero, not the letter O
5.) What pattern do you see in the output for #4? Explain the pattern.
6.) Create your own pattern by converting a list octal or hexadecimal values of your choice to decimal, and explain the pattern.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!