Avatar ·

Determination of the number with the largest sum of numbers

📁 python

Three whole numbers are given. Determine which of them has more the sum of numbers. Calculation of the amount of numbers to organize through the function.

I determine the amount of the number of numbers as follows:

   While  n & gt;  0 :  d = n% 10   n = n //  10    sum += d  

and how to organize through Funkia?