Question: Write a program in Python to convert an 8-bit binary number to a decimal number. This application will use loops and conditions to accomplish the
Write a program in Python to convert an 8-bit binary number to a decimal number. This application will use loops and conditions to accomplish the task. If the input is less than or greater than 8 bits or anything other than 0s or 1s, you can exit with an error message.
(Can you please do it AS SIMPLE AS YOU CAN as I am a beginner and if you use things that i havent learned then your code looks like a Chinese to me so please do it as simple like if you are teaching a 5 year old or your grandpa)
(Can you please COMMENT your line of code? so I know what you are attempting to do?)
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
