Python | Generate a random number in the range of 1 to 10 using the function

Method 1: Using randint() from NumPy Output: Explanation: In this method, we used the numpy library. We defined two variables start and end and passed…

Continue Reading

Python | Check Whether a Given Number is Even or Odd using Recursion

Let us go through all the methods using which we can solve this problem of finding odd and even numbers Method 1: Using the number…

Continue Reading

Python | Print Binary Equivalent of an Integer using Recursion

In order to solve this problem, we only have one method to use. Let us take a look at it. Output: Explanation: Here we used…

Continue Reading

Python | Print Binary Equivalent of a Number without Using Recursion

In the previous article, we saw the same problem but there we solved using recursion. Here we will go through all the methods in which…

Continue Reading

Python | Reverse a string using recursion

Here we are to help you in solving the widely asked question. Lets us take a look at a recursive approach to solve this. Output…

Continue Reading

Python | Find Sum of Digit of a Number Without Recursion

Let us rub our hands on this problem by taking a look at various methods. Method 1: Using for loop Output: Explanation Here we simply…

Continue Reading

Python | Reverse a string without recursion

Let us now see all the methods to solve Python programs to reverse a string without recursion. Method 1: Using the loop Output Explanation We…

Continue Reading

Python | Reverse a list using recursion

Explanation: Here in this approach, we first took the input from the user about the number of elements in the list, and based on that…

Continue Reading

Python | Print Hello world using function

Today in this article, we will talk about how to print “Hello World”, but the only catch is that we will not use the simple…

Continue Reading

Python | Reverse a list without recursion

Let us take a look at how to solve this problem with various different methods. Method 1: Using reduce() of functools method Output: Explanation: At…

Continue Reading

Python | Check if a string is a palindrome or not using Recursion

Method 1: Using the string slicing method with the recursive approach Output: Explanation Now if the length of the string is less than 1 then…

Continue Reading

Python | Find n-th Fibonacci number without recursion

Let us take a look at all the ways using which we can solve this problem. Method 1: Using simple addition Output: Explanation:Here for 0…

Continue Reading

Python | Factorial of a number using Recursion

Using the concept of recursion, we have two methods to solve this problem. Let us take a look at that method. Method 1: Using factorial…

Continue Reading

Python | Factorial of a number without Recursion

Method 1: Using the numpy library Output: Explanation: We simply used the prod() function of the numpy library, wherein we used a for loop that…

Continue Reading

Python Program to Find Sum of Digit of a Number using Recursion

Method 1: Using the divide method Output: Explanation: Here we will be using conditional for checking that if the number is 0 then its sum…

Continue Reading

Python Program for the n-th Fibonacci number using recursion

Using recursion we have one way to solve this problem, let us take a look at it. Method 1: Using multiple conditionals Output: Explanation: This…

Continue Reading
Ticket Booking and Management in Python

Ticket Booking and Management in Python

Hello friends, in this article we will build Ticket Booking and Management in Python. This app will simulate a general Ticket management system means this…

Continue Reading
To Do List in C++

To Do List in C++

In this article, we are going to create To Do List in C++ with the help of file handling. By using file handling we can persist…

Continue Reading
Radha Krishna using Python Turtle

Radha Krishna using Python Turtle

Hello friends, in this article, we will learn to draw a simple drawing of Radha Krishna using Python Turtle. Please share if you like. Image…

Continue Reading
Tic Tac Toe Game in C++

Tic Tac Toe Game in C++

In this article, we are going to create Tic Tac Toe Game in C++. This will be a simple console-based application in which the player can…

Continue Reading