Question: Python, cannot have a built in function or string manipulation NO LOOP The function will take a two digit number and will have a parameter

Python, cannot have a built in function or string manipulation NO LOOP

The function will take a two digit number and will have a parameter in base 10 or decimal. There will be a three digit 8 number that will return, the number is equivalent, it may begin with a zero and it will be a maximum of three digits. To get the digit of the most significant position you must use floor division when converting to find how many times 8**2 will go into the parameter. Then use modulus to find the other positions (8**1 and 8**0). Then put together each singular digit using an f string. The decimal number 71 is equal to 1*8**2 + 6*8**1 + 7*8**0 two digit number returned and positive

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!