Answered You can hire a professional tutor to get the answer.
How do i do this: Write a function called digits that takes one number parameter named number and returns a list with each digit in the number added separately to the list as an integer. Do this using
How do i do this:
Write a function called digits that takes one number parameter named number and returns a list with each digit in the number added separately to the list as an integer. Do this using division and modulus operators.
Function Name
digits
Parameters
number: an integer value
Return Value
Return a list containing each digit from number
Examples
digits(1234567) # -> [1,2,3,4,5,6,7]
digits(48629) # -> [4,8,6,2,9]