How to calculate area of triangle in Python?

By Nikhil Vaddipati

Hello readers, today we are going to discuss how the area of a triangle is calculated in Python. Calculating Area of Triangle in Python Case1: If the length of the base and height .... Read More

How to print reverse tuple in Python

By Nikhil Vaddipati

Hello readers, today we are going to discuss how to print reverse tuple in Python. Printing reverse tuple in Python Let’s consider a tuple tup. tup = (1,2,3,4,5,6) Our goal i.... Read More

Check if a value exists in an array in C++

By Aastha Jain

In this tutorial, we will learn how to check the presence of a value in an array in C++. So let’s get started. An array is a group of similar types of data items that can be .... Read More

string::npos in C++

By Ankur Sinha

In this tutorial, We are going to learn about the string:: npos using C++. Let us know more about it. What is string::npos? It is a static member value with the maximum value for a.... Read More

How to initialise static variable in C++

By Ankur Sinha

In this tutorial, we will learn how we will be initializing the static variable in C++. First, let us understand how to declare them? For a Detailed study go to the link Initializa.... Read More

Replace characters of a string in Swift

By Faruque Ahamed Mollick

In this tutorial, you will see how we can replace characters or part of a string in Swift program with examples. You will learn 3 methods of replacing string characters using Swift.... Read More

How to get a dictionary from an Object’s Fields in Python

By Seepak Kumar

In this article, we will look at how to get a dictionary from an object’s field in Python. When we want to get a dictionary from the object’s field, we want to get the clas.... Read More

Random dice roll program in Python

By Harish Mullagura

We will discuss one of the famous codes that is how to program Random dice roll in Python. The program is popularly known as “Roll the dice”. For this we will use the r.... Read More