• Multiple classes in one file in Java
    18 October

    Multiple classes in one file in Java

    In this post, we will see how to have multiple classes in one file in java. Introduction You need to have any number of classes in a single Java file, but there is a restriction that you can declare only one Java class as public modifier with the main() method and declare (without public) for […]

  • Bilinear Interpolation in Python
    11 November

    Bilinear Interpolation in Python

    What is Bilinear Interpolation? Linear Interpolation in mathematics helps curve fitting by using linear polynomials that make new data points between a specific range of a discrete set of definite data points. The term Bilinear Interpolation is an extension to linear interpolation that performs the interpolation of functions containing two variables (for example, x and […]

  • Split String by comma in C++
    10 November

    Split String by comma in C++

    In this article, we will split a string by comma in C++. There are several methods available to achieve this. For this, we can create a function and use some inbuilt functions. Using the for loop In this method, we will loop through a string using the for loop and check each character individually, whether […]

  • 06 October

    How to find index of all occurrences in list in Python

    List is a data type in Python. It is used to store multiple values in one variable. If you want to find out how many times a certain element shows up in a list and where – you’ve come to the right place. In this tutorial, we’ll show you how to find index of all […]

  • 05 October

    Pandas replace values in column

    In this article, we will discuss how to replace values in column of pandas dataframe. Using the loc() function to replace values in column of pandas DataFrame The loc() function is used to access values based on column names and row values. We can use this function to access the required value and provide the […]

  • Loop through String in Python
    28 October

    Loop through String in Python

    In this article, we will see how to loop through String in Python. Iteration or looping means executing a set of statements till a given condition is met. In Python, we can loop over data structures to access their elements. A string is like an array of characters. We can loop through a string and […]

  • Get random boolean in Python
    28 October

    Get random boolean in Python

    What are Boolean Values? Python has a built-in data type Boolean that represents True and False values. It has only these two values. We can also consider True and False as 1 and 0, respectively. If we convert 0 or 1 to Boolean, then we get True or False only. This tutorial will demonstrate how […]

  • How to comment out multiple lines in python
    16 October

    How to comment out multiple lines in python

    In this article, we will see about how to comment out multiple lines in python. The concept of comments is present in most programming languages. We use comments for documentation purposes. The compiler ignores them, but the user can use comments to describe what is happening in the code. As the code grows longer and […]

  • Get variable name as String in Python
    01 October

    How to get variable name as String in Python

    In Python, there are several ways to convert a string to a variable name, but the reverse process is not exactly utilized so often in the programming world. This article focuses on how to get a variable name as a string in Python. What are variable names in Python? The term variable can be defined […]