Declare a 2D array in C++ using new operator

By Raghav Khandelwal

In this tutorial, we are going to learn how to declare a 2D array in C++ using new operator. To begin with, first, let’s understand what are multidimensional arrays. In simpl.... Read More

Least Astonishment and the Mutable Default Argument in Python

By Varsha Neelamma

Python, as you may have observed is an easy and user-friendly language. However, sometimes you may come across tricky behavior in the language that may surprise you. One such behav.... Read More

How to Remove all the elements from an array having a specific value in C++

By Gagan Gupta

In this tutorial, we will learn how to remove all the elements from an array having a specific value. Removing all the elements from an array having a specific value in C++ In the .... Read More

C++ program to calculate simple interest and compound interest

By Joyeeta Choubey

In this tutorial, we will learn how we can calculate simple interest and compound interest using the C++ program. So let’s know what simple interest and compound interest are.... Read More

How to detect language in Python

By Anudeep Pulluri

Hey Techie! today we are going to learn how to detect an unknown language using Python. Basically, in Python, we have modules for detecting any language. At first, the modules we a.... Read More

How to take input from the user until they enter valid input in Python?

By Varsha Neelamma

Consider you are solving a problem in which you need to take input from the user and validate the same. You will simply use the input() method and typecast it accordingly for the s.... Read More

Find the last occurrence of a character in a string using Python

By Anudeep Pulluri

Hey Coder! today we are going to learn how to find the last occurrence of a character in a string using Python. The approaches would be: By using an in-built rfind() function. By p.... Read More

C++ program to print 1 to 10 numbers using for loop

By Joyeeta Choubey

In this tutorial, we are going to learn how to print 1 to 10 numbers using for loop in C++.  So we can print using for loop in an easy way without lengthy codes and for loop makes.... Read More

Related Posts