Categories
Python Examples

Python Program to Display Powers of 2 Using Anonymous Function

In this program, you’ll learn to display powers of the integer 2 using Python anonymous function. In the program below, […]

Categories
Python Examples

Python Program to Return Multiple Values From a Function

In this example, you will learn to return multiple values from a function. Example 1: Return values using comma def […]

Categories
Python Examples

Python Program to Convert Decimal to Binary Using Recursion

In this program, you will learn to convert decimal number to binary using recursive function. Decimal number is converted into […]

Categories
Python Examples

Python Program to Find Factorial of Number Using Recursion

In this program, you’ll learn to find the factorial of a number using recursive function. The factorial of a number […]

Categories
Python Examples

Python Program to Find Sum of Natural Numbers Using Recursion

In this program, you’ll learn to find the sum of natural numbers using recursive function. In the program below, we’ve […]

Categories
Python Examples

Python Program to Display Fibonacci Sequence Using Recursion

In this program, you’ll learn to display Fibonacci sequence using a recursive function. A Fibonacci sequence is the integer sequence […]

Categories
Python Examples

Python Program to Display Calendar

Python has a built-in function, calendar to work with date related tasks. You will learn to display the calendar of […]

Categories
Python Examples

Python Program to Shuffle Deck of Cards

In this program, you’ll learn to shuffle a deck of cards using random module. Source Code # Python program to […]

Categories
Python Examples

Python Program to Make a Simple Calculator

In this example you will learn to create a simple calculator that can add, subtract, multiply or divide depending upon […]

Categories
Python Examples

Python Program to Find the Factors of a Number

In this program, you’ll learn to find the factors of a number using the for loop. Source Code # Python […]