Write a python program that asks the user to enter a series


Sum of Digits in a String: Write a python program that asks the user to enter a series or single digit numbers with nothing separating them. The program should display the sum of all the single digit numbers in the strong. For Example, if the user enters 2514, the method should return 12, which is the sum of 2,5,1 and 4.

Solution Preview :

Prepared by a verified Expert
Business Management: Write a python program that asks the user to enter a series
Reference No:- TGS01676899

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)