Question: Given any integer positive number, write a Python function named, get _ sum _ of _ digits to return the sum of all the digits

Given any integer positive number, write a Python function named, get_sum_of_digits to return the sum of all the digits of the number only numerically. Here you are not allowed to use string class including converting the number to a string. You may also not allowed to use any Python module here.
For example your call, get_sum_of_digits(123) must return 6 because the sum of digits, 1+2+3=6.
Do the following:
Implement your function (60 points)
In your main program, test your function for the criteria given below.
Criteria
Below are the test cases. Please follow that example to test the rest in the order given here.
 Given any integer positive number, write a Python function named, get_sum_of_digits

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!