Sum of Digit of a Number Without Recursion in Python

This is a Python Program to find the sum of digits in a number without using recursion. Problem Description The program takes a number and finds the sum of digits without using recursion. Problem Solution 1. Take a number from the user. 2. Using a while loop, obtain each digit and append it to the … Read more

advertisement

Python Program to Print Binary Equivalent of a Number without Using Recursion

This is a Python Program to find the binary equivalent of a number without using recursion. Problem Description The program takes a number and finds the binary equivalent of the number without using recursion. Problem Solution 1. Take a number from the user. 2. Using a while loop, convert each digit into binary and append … Read more

advertisement

Sum of Digit of a Number using Recursion in Python

This is a Python Program to find the sum of the digits of the number recursively. Problem Description The program takes a number and finds the sum of the digits of the number recursively. Problem Solution 1. Define a recursive function which takes a number as the argument. 2. Take a number from the user … Read more

advertisement

Python Program to Print Binary Equivalent of an Integer using Recursion

This is a Python Program to find the binary equivalent of a number recursively. Problem Description The program takes a number and finds the binary equivalent of a number recursively. Problem Solution 1. Define a recursive function which takes a number as the argument. 2. Take a number from the user and pass it as … Read more

advertisement

Python Program to Check if a Number is Odd or Even

Problem Description Write a Python Program to check whether a given number is even or odd. What is an Even Number? An even number is an integer that is divisible by 2 without leaving a remainder, such as 2, 4, 6, 8, 10, and so on. What is an Odd Number? An odd number is … Read more

advertisement

Python Program to Find Numbers which are Divisible by 7 and Multiple of 5 in a Given Range

This is a Python Program to find those numbers which are divisible by 7 and multiple of 5 in a given range of numbers. Problem Description The program takes an upper range and lower range and finds those numbers within the range which are divisible by 7 and multiple of 5. Problem Solution 1. Take … Read more

advertisement

Python Program to Print All Possible Combinations of Three Digits

This is a Python Program to accept three distinct digits and print all possible combinations from the digits. Problem Description The program takes three distinct numbers and prints all possible combinations from the digits. Problem Solution 1. Take in the first, second and third number and store it in separate variables. 2. Then append all … Read more

advertisement

Python Program to Calculate Grade of a Student

This is a Python Program to take in the marks of 5 subjects and display the grade. Problem Description The program takes in the marks of 5 subjects and displays the grade. Problem Solution 1. Take in the marks of 5 subjects from the user and store it in different variables. 2. Find the average … Read more

advertisement

Python Program to Find All the Divisors of an Integer

This is a Python Program to generate all the divisors of an integer. Problem Description The program takes a number and generates all the divisors of the number. Problem Solution 1. Take the value of the integer and store it in a variable. 2. Use a for loop and if statement to generate the divisors … Read more

advertisement

Python Program to Print Table of a Given Number

This is a Python Program to print the table of a given number. Problem Description The program takes in a number and prints the table of a given number. Problem Solution 1. Take in a number and store it in a variable. 2. Print the multiplication tables of a given number. 3. Exit. Program/Source Code … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.