8.2. (Part 1) Sum of Digits in a String - Python

Veröffentlicht am: 28 November 2018
auf dem Kanal: Kakra Detome
10,881
45

Starting out with Python, Third Edition, Tony Gaddis
Chapter 7
Programming Challenges

2. Sum of Digits in a String

Write a program that asks the user to enter a series of single-digit
numbers with nothing separating them. The program should display the sum of all the single digit numbers in the string. For example, if the user enters 2514, the method should return 12, which is the sum of 2, 5, 1, and 4.

Starting out with Python. Third Edition. Tony Gaddis.

Learn Java -    • Learn Java  

Learn Python -    • Learn Python  

Programming challenges, Starting out with Java by Tony Gaddis -    • Programming challenges - Starting out...  

Programming challenges, Starting out with Python by Tony Gaddis,    • Programming challenges - Starting out...  

Thanks 😊


Auf dieser Seite können Sie das Online-Video 8.2. (Part 1) Sum of Digits in a String - Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Kakra Detome 28 November 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,881 Mal angesehen und es wurde von 45 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!