Posts by Ranjeet V

Author Biographical Info: Not available

abs() vs fabs() function in Python

By Ranjeet V

This tutorial will teach you about the working of abs() and fabs() method in Python and their differences. The primary purpose of both of these functions is to find the absolute va.... Read More

round() function in C++

By Ranjeet V

In this tutorial, we will learn about the round() function in C++. This function is defined in cmath header in C++. We will be using it in our C++ program to round a given number w.... Read More

div() function in C++

By Ranjeet V

This tutorial illustrates the working of the div() function in C++. We can use this function to find the quotient and remainder of a division. The div() function is defined in the .... Read More

Check whether a number is odd or even using a bitwise operator in C++

By Ranjeet V

In this tutorial, we will learn how to check whether a number is odd or even using a bitwise operator in C++.  Normally, we check if the number is divisible by 2 and based on that.... Read More

How to set, clear and toggle a single bit in C++

By Ranjeet V

In this tutorial, we will learn how to set, clear and toggle a single bit in C++. We will use bitwise operators in our program in order to do this. See more on this further in this.... Read More

Python: Check if all the elements in a list are equal

By Ranjeet V

Hello everyone, in this tutorial, we are going to see how we can write a Python program to check if all the elements in a list are equal. We can accomplish this in many ways. A few.... Read More

Python next() Function with examples

By Ranjeet V

This tutorial discusses the python next() function with examples. This is an in-built function that helps us to iterate over an iterator if the length has not been given. next() fu.... Read More

Difference between sort() and sorted() functions in Python

By Ranjeet V

Hey everyone, in this tutorial we are going to learn how to use sort() and sorted() functions in our Python program. We are going to see how these two functions are quite different.... Read More

Related Posts