Question: please use python Question . One method to determine if an integer is a multiple of 9 is to sum the individual digits, then continue

please use python

 please use python Question . One method to determine if an

Question . One method to determine if an integer is a multiple of 9 is to sum the individual digits, then continue to sum the resulting values until you have a one-digit result. For example, the integer 1863 can be verified as a multiple of 9 by adding the digits (1+8 6 3 18), then adding the digits of the resulting value (1+8-9). Since the final single digit answer is 9, then we know that the starting value was an even multiple of 9. Define a function named q60 that accepts an integer as a parameter, then (using only string manipulation and integer addition), creates a list of all the values obtained by adding the digits together until arriving at a single digit final answer. The function should return the list of resulting values. If the parameter string does not contain only digits, the function should return an empty list. Example output of function q6(0 at the interactive Python prompt: 0 1 >q6 ('Bob') f Doesn't contain digits, returns empty list [ 12, 3 ] >g6 ('9267304815') 45, 9 NOTE: Your q60 function should return only the list of values; it should not print anything

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!