• Catch all exceptions in C++
    10 February

    Catch All Exceptions in C++

    In this article, we will see how to catch all exceptions in C++. Exception Handling in C++ An exception is an error condition that occurs when a program is running and causes it to crash. It can be due to accessing an out of index element from an array, dividing a number by 0, and […]

  • Exit program in C++
    31 January

    Exit program in C++

    In this post, we will see how to exit program in C++. This post will also cover following topics. How to end program in C++. How to close program in C++. Exit program in C++ A program terminates when the final line of code executes. This also frees up the allocated resources. However, at times […]

  • Count the number of characters in a String in Python
    13 January

    Count number of characters in a string in python

    In this post, we will see how to count number of characters in a String in Python. We can think of strings as a collection of characters, with every character at a given index. Ways to count the number of characters in a string in Python In this tutorial, we will find out the total […]

  • Convert String to lowercase in C++
    11 January

    Convert String to lowercase in C++

    In this post, we will see how to convert String to lowercase in C++. We can assume strings to be an array of characters. Each character has a specific ASCII value, and characters with different cases, for example, a and A have different ASCII values. Ways to Convert a String to Lowercase in C++ We […]

  • Python float array to int
    11 November

    Convert float array to int array in Python

    What are the types of arrays? An array is a common structure that stores multiple items of a similar type together in a single place in a contiguous memory location. We can create arrays of any one of the data types provided in Python. Ways to convert float arrays to int in Python In Python, […]

  • How to decrement for loop in Python
    28 October

    How to decrement for loop in python

    We use the for loop widely in the programming world. Most programs, whether highly complex or not, contain this loop. Sometimes, depending on the conditions, we need to decrement the loop. This article focuses on the ways to decrement the for loop in Python. What is for loop in Python? The for loop is a […]

  • Get Number of Elements in Array in C++
    08 October

    Get Number of Elements in Array in C++

    One of the most fundamental collections in any programming language is an array. It stores a similar type of data at specific indices that we can use to access them. It holds the data in contiguous memory locations. We will understand how to find the total number of elements of an array in this article. […]

  • Print blank line in Python
    23 September

    Print Blank Line in Python

    1. Introduction The print() function is a versatile tool in Python, often used to display messages or output. When dealing with multiple or extensive outputs, the final result can become congested and unclear. Utilizing blank lines can significantly enhance readability by segregating different parts of the output. 2. What is a Blank Line in Python? […]

  • 17 September

    Write list to CSV in Python

    A CSV file is a text file used to store data in tabular format and is compatible with Excel. It is used to store multiple values separated by a comma. If you want write list to any file, you can refer write list to file in Python. In this article, we will write a list […]