Sum of digits | Codechef | Python

3K views Nov 22, 2022

Hello to all my dear viewers...! In this video you will learn how to solve Sum of digits problem of Beginner level in Codechef in Python Language. This is very interesting problem in Codechef. You are going to add the digits of the given number. But, here you are going to add the digits of the series of the given integers where these series are decided based on testcase given by the user. You can solve this problem easily using Python Language. You solve this problem basically in 2 steps. 1. The first step is to isolate the last digit from integer. 2. Second thing is to add that separated digit to a variable called Sum. You will continue this until n value becomes zero. you will be eliminating the separated digit for every iteration and these iterations are done until n value becomes zero. This is all about Sum of digits problem. If you wanna solve this then right away go to this link : https://www.codechef.com/problems/FLOW006 If you haven't Sign-up yet then follow this video link : https://youtu.be/uEfwjbNlHKg You can get Updates of my videos by following me Instagram: https://www.instagram.com/girl_coder_impressive/ You can also follow my facebook page for more updates : https://www.facebook.com/Girl_Coder_impressive-101934658207369/