- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
3.20 – Palindrome Number Program | Python Programming – New Series
Welcome to the Python Programming – Complete Course (New Series) by Burle Sharma.
In this class (3.20), we continue with digit-based number programs and solve an important problem:
👉 Write a program to accept a number and check whether it is a Palindrome or not.
A palindrome number is a number that remains the same when its digits are reversed.
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
• Understanding palindrome concept
• Reversing a number using logic
• Comparing original and reversed number
• Using modulus (%) and integer division (//)
• Applying while loop in real problems
• Performing dry run for clarity
• Writing structured programs
🧠 Program: Check Palindrome Number
Example 1:
Input: 121
Reverse: 121
Output: Palindrome
Example 2:
Input: 123
Reverse: 321
Output: Not a Palindrome
Logic
✔ Accept a number from the user
✔ Store the original number in a variable
✔ Initialize reverse = 0
✔ Use while loop until number becomes 0
✔ Extract last digit using %
✔ Build reverse number:
reverse = reverse * 10 + digit
✔ Remove last digit using //
✔ Compare reverse with original number
✔ If equal → Palindrome
✔ Else → Not a Palindrome
🧠 Key Learning Point
Palindrome programs combine multiple concepts:
✔ Digit extraction
✔ Loop control
✔ Number building
✔ Conditional checking
Also, while loop is used because:
✔ Number of iterations is not fixed
✔ Loop continues until number becomes 0
🎯 Why This Video Is Important
This program is very important because it helps students:
• Strengthen digit manipulation logic
• Build problem-solving ability
• Prepare for advanced number problems like:
- Armstrong number
- Reverse number
- Digit-based patterns
It is also commonly asked in exams and interviews.
#Python #PythonProgrammingNewSeries #BurleSharma
#PalindromeNumber
#WhileLoopPython
#DigitPrograms
#PythonNumberPrograms
#PythonBeginners
#PythonDryRun
#Geecoding #PythonClass320
Видео 3.20 – Palindrome Number Program | Python Programming – New Series канала Burle Sharma (geecoding)
In this class (3.20), we continue with digit-based number programs and solve an important problem:
👉 Write a program to accept a number and check whether it is a Palindrome or not.
A palindrome number is a number that remains the same when its digits are reversed.
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
• Understanding palindrome concept
• Reversing a number using logic
• Comparing original and reversed number
• Using modulus (%) and integer division (//)
• Applying while loop in real problems
• Performing dry run for clarity
• Writing structured programs
🧠 Program: Check Palindrome Number
Example 1:
Input: 121
Reverse: 121
Output: Palindrome
Example 2:
Input: 123
Reverse: 321
Output: Not a Palindrome
Logic
✔ Accept a number from the user
✔ Store the original number in a variable
✔ Initialize reverse = 0
✔ Use while loop until number becomes 0
✔ Extract last digit using %
✔ Build reverse number:
reverse = reverse * 10 + digit
✔ Remove last digit using //
✔ Compare reverse with original number
✔ If equal → Palindrome
✔ Else → Not a Palindrome
🧠 Key Learning Point
Palindrome programs combine multiple concepts:
✔ Digit extraction
✔ Loop control
✔ Number building
✔ Conditional checking
Also, while loop is used because:
✔ Number of iterations is not fixed
✔ Loop continues until number becomes 0
🎯 Why This Video Is Important
This program is very important because it helps students:
• Strengthen digit manipulation logic
• Build problem-solving ability
• Prepare for advanced number problems like:
- Armstrong number
- Reverse number
- Digit-based patterns
It is also commonly asked in exams and interviews.
#Python #PythonProgrammingNewSeries #BurleSharma
#PalindromeNumber
#WhileLoopPython
#DigitPrograms
#PythonNumberPrograms
#PythonBeginners
#PythonDryRun
#Geecoding #PythonClass320
Видео 3.20 – Palindrome Number Program | Python Programming – New Series канала Burle Sharma (geecoding)
Python palindrome number program Check palindrome in Python Reverse number Python program While loop number programs Python Digit extraction Python program Python modulus operator example Python beginner programs Python dry run explanation Python new series Geecoding Python course Python programming in Hindi
Комментарии отсутствуют
Информация о видео
19 марта 2026 г. 18:30:00
00:11:22
Другие видео канала













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







