How to comment out a portion of code in Python

By Anamika Roy

We are going to discuss how to comment out a portion of code in Python, in this tutorial. We add comments to explain the code or to avoid getting the code complex. It is always goo.... Read More

Slice Notation on List in Python

By Sanam Sahoo

Hello, Coders!! In this Python tutorial, we will learn about the slice notation on a list in a Python program. Before diving into the main topic, let’s discuss some basic con.... Read More

EMI Calculator in Java

By Sai Venkat Kodithyala

In this tutorial, we will learn how to calculate the EMI in Java. EMI is nothing but, a payable amount that needs to be given to the bank every month until the full amount is paid..... Read More

How to sort vector in descending order in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will learn how to sort a vector in descending order in C++. Let’s discuss the methods, we can sort the vector: Using sort() function Using.... Read More

How to access elements of a nested dictionary in Python

By Yashkumar Patel

In this tutorial, you will learn how to form a dictionary and access elements of a nested dictionary to change it according to the need of the user. In Python, how can we access el.... Read More

Check if an element exists in vector in C++

By Pyata Sandeep

Hey folks! Here, we are going to check if an element exists in a vector or not in C++. In general, you can find element in a vector using std functions. This returns an iterator to.... Read More

Actual purpose of int& foo() in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will discuss the actual purpose of int& foo() in a C++ program. int& foo() in C++ In C++ int& foo() declares a function having a fun.... Read More

#include vs #include “filename” in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will discuss the difference between #include <filename> and #include “filename” in a C++ program. Let’s understand what .... Read More