Question: Write a python program to convert binary number to the equivalent decimal number. You can create a string variable for the bit string (0s and
Write a python program to convert binary number to the equivalent decimal number. You can create a string variable for the bit string (0s and 1s) to convert to the decimal value or you can get the bit string from user (optional). Use for loop or while loop to iterate through the bits (binary digits) in the bit string. Print the output of the program. Example output can be like this bitstring = "1001" the decimal value of the bit string is: 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
