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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started