- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
3.21 – Count Number of Digits | Python Programming – New Series
Welcome to the Python Programming – Complete Course (New Series) by Burle Sharma.
In this class (3.21), we continue with digit-based number programs and solve an important problem:
👉 Write a program to accept a number and count the total number of digits.
In this video, I have:
✔ Written the expected output clearly
✔ Explained the problem statement properly
✔ Written the complete program
✔ Performed a detailed dry run step-by-step
✔ Executed the program and verified the output
🎓 What You’ll Learn in This Video
• Accepting input from the user
• Understanding digit counting logic
• Using while loop effectively
• Using integer division (//)
• Working with counter variable
• Performing step-by-step dry run
• Writing clear and logical programs
🧠 Program: Count Number of Digits
Example:
Input: 4589
Process:
Digits → 4, 5, 8, 9
Output:
Total digits = 4
Logic
✔ Accept a number from the user
✔ Initialize count = 0
✔ Use while loop until number becomes 0
✔ Remove last digit using // operator
✔ Increment count for each iteration
✔ Display total count
🧠 Key Learning Point
Digit counting is based on the idea that:
✔ Each division by 10 removes one digit
✔ Loop runs until the number becomes 0
✔ Count increases with each step
Also, while loop is used because:
✔ Number of digits is not known in advance
✔ Loop continues until condition becomes false
🎯 Why This Video Is Important
This program is very important because it helps students:
• Understand digit processing clearly
• Strengthen loop control
• Build foundation for advanced number programs like:
- Reverse number
- Palindrome
- Armstrong number
These concepts are frequently used in exams and coding interviews.
#Python #PythonProgrammingNewSeries #BurleSharma
#CountDigits#WhileLoopPython#DigitPrograms#PythonNumberPrograms
#PythonBeginners#PythonDryRun#Geecoding #PythonClass21#geecoding
Видео 3.21 – Count Number of Digits | Python Programming – New Series канала Burle Sharma (geecoding)
In this class (3.21), we continue with digit-based number programs and solve an important problem:
👉 Write a program to accept a number and count the total number of digits.
In this video, I have:
✔ Written the expected output clearly
✔ Explained the problem statement properly
✔ Written the complete program
✔ Performed a detailed dry run step-by-step
✔ Executed the program and verified the output
🎓 What You’ll Learn in This Video
• Accepting input from the user
• Understanding digit counting logic
• Using while loop effectively
• Using integer division (//)
• Working with counter variable
• Performing step-by-step dry run
• Writing clear and logical programs
🧠 Program: Count Number of Digits
Example:
Input: 4589
Process:
Digits → 4, 5, 8, 9
Output:
Total digits = 4
Logic
✔ Accept a number from the user
✔ Initialize count = 0
✔ Use while loop until number becomes 0
✔ Remove last digit using // operator
✔ Increment count for each iteration
✔ Display total count
🧠 Key Learning Point
Digit counting is based on the idea that:
✔ Each division by 10 removes one digit
✔ Loop runs until the number becomes 0
✔ Count increases with each step
Also, while loop is used because:
✔ Number of digits is not known in advance
✔ Loop continues until condition becomes false
🎯 Why This Video Is Important
This program is very important because it helps students:
• Understand digit processing clearly
• Strengthen loop control
• Build foundation for advanced number programs like:
- Reverse number
- Palindrome
- Armstrong number
These concepts are frequently used in exams and coding interviews.
#Python #PythonProgrammingNewSeries #BurleSharma
#CountDigits#WhileLoopPython#DigitPrograms#PythonNumberPrograms
#PythonBeginners#PythonDryRun#Geecoding #PythonClass21#geecoding
Видео 3.21 – Count Number of Digits | Python Programming – New Series канала Burle Sharma (geecoding)
Комментарии отсутствуют
Информация о видео
20 марта 2026 г. 18:30:59
00:09:57
Другие видео канала











![[Core Java] Class-18 : Display factors of a number #Count the number of factors](https://i.ytimg.com/vi/lvjgG3F86n4/default.jpg)









