Summary
Keywords
Full Transcript
Python Program to find Sum of Digits of a Given Number - In Hindi - Tutorial#21 In this video, I have explained a program to find sum of digits of a given numbers. In this program we have to add all the individual digits of a number. For Example if the given number is 154 then we have to find the sum of its digits i.e. 1+5+4=10 will be the final sum of digits. We will do the sum of digits program using While statement. While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts: 1. Initialization of counter variable. 2. Condition 3. Increment/Decrement of counter variable While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly. Link to Previous Video: https://youtu.be/8s38WPdRN-0 Link to Next Video: https://youtu.be/l1JaZiQy2Ow ===================================================================== Buy "CBSE CS Python Class 11" & "CBSE CS Python Class 12" Book By: Anand Sir From ===================================================================== 1. CODEITUP Website: Class 11 Book: https://codeitup.in/products/CBSE-Class-11-CS-Python-Book Class 12 Book: https://codeitup.in/products/CBSE-Class-12-CS-Python-Book 2. Amazon Website: Class 11 Book: https://www.amazon.in/CBSE-CS-Python-Class-11/dp/B0DX83MP2W Class 12 Book: https://www.amazon.in/dp/B0CWR987M1 3. Flipkart Website: Class 11 Book: https://www.flipkart.com/cbse-cs-python-class-11/p/itm298fe77501ded? Class 12 Book: https://www.flipkart.com/cbse-cs-python-class-12/p/itmd85ef4dbba70b? 4. Notion Press Website: Class 11 Book: https://notionpress.com/in/read/cbse-cs-python-class-11/ Class 12 Book: https://notionpress.com/read/cbse-cs-python-class-12 ===================================================================== Buy previous batch recorded lectures by Anand Sir: https://codeitup.in/course/CBSE-CS-Class-12-Python-Zoom-LiVE-Class-Recorded-Lecture-By-Anand-Sir ===================================================================== CODEITUP PLAYLISTS 1. C Programming Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtksgReOH3s7R1_cb1QA8vrb 2. C++ Programming Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtlXMvqL0zDqQu9Cvy6rsmd4 3. Java Programming Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtnqhXTJwd-oqVRwO3bLZCGV 4. Python Programming Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtmcLF3ywxKg692lhfD6SUOr 5. CBSE Class 12 (CS) Python Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5Dtlzkmku_7-eyShxKK3nOY5X 6. CBSE Class 12 (IP) Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5Dtn8PPuvwIAtVdGXQalL-HWw 7. CBSE Class 11 (CS) Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtlWzjMNELOeIpQ-Q835d1DN 8. CBSE Class 10 (IT): https://www.youtube.com/playlist?list=PLmRclvVt5Dtk6-4rrxDgZYw0YWMrjEhNK 9. Networking Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtkgVGXvrCcmWck1XGfoXg3s 10. MySQL Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtlM3Ef8ERo4sVVk-yTvSzX5 11. Web Designing: https://www.youtube.com/playlist?list=PLmRclvVt5DtnJ_dVZ_vQxYyXclx2q6cyc 12. NumPy Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5Dtlgy6PordwKtiUr7fwjuhfz 13. Computer Fundamental Playlist: https://www.youtube.com/playlist?list=PLmRclvVt5DtmQLe3INJgKbQy1Z9fFrJ5t ===================================================================== Telegram Channel: https://t.me/codeituplearners Facebook Group: https://www.facebook.com/groups/21673... Instagram: https://t.me/codeitupyt Facebook Group: https://www.facebook.com/groups/2167344556716563/?ref=bookmarks Facebook Page: https://www.facebook.com/Codeitup-104310264625489/ Website: https://codeitup.in Join this channel to get access to perks: https://www.youtube.com/channel/UCO0KFz5_gtZt-AfyIV2sAkw/join ===================================================================== Tags Used: python programming python tutorial python for beginners python loops tutorial while loop in python python looping program python programming exercise python tutorial in hindi python program to find sum of digits sum of digits calculate sum of digits of a given number sum of digits method telusko python harshit vashisth python carryminati technical guruji bb ki vines program find sum digits number Python Program to find Sum of Digits of a Given Number #codeitup #whileloop #python
