Question: assignment from the skool of rock USING PYTHON OBJECTIVE : to input a 6 digit binary number such as 100111 or any other binary number

assignment from the skool of rock

USING PYTHON

OBJECTIVE : to input a 6 digit binary number such as 100111 or any other binary number

each bit will have a weighting,

1 =32

0= nothing

0= nothing

1= 4

1= 2

1= 1

in this example my output is 32,2,1

a have an input list which has 100011

a weighting list which has 32,16,8,4,2,1

an empty list which would be output list

i am struggling to have the input match the weighting.

i can't use any special functions within this

PLEASE ONLY ANSWER THIS CORRECTLY AS ANY RANDOM JIBBERISH WILL JUST GET A THUMBS DOWN- i asked before and the answer was not correct and it took seconds therefore clearly just copied and pasted alsewhere without even checking the output result.

much appreciated for anyone who can actually help though

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!