• 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 print type of variable
    16 November

    Print type of variable in Python

    What is the type of variable in Python? We use variables to store data in a reserved memory location. The type of a variable defines the memory allocated to it. The type of a variable is based on the data we store in it. We do not need to explicitly mention the type of 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. […]

  • Python print percent sign
    30 September

    Print percentage sign in python

    Introduction In this tutorial, we will see how to print percentage sign in python. The modulus operator (%) or the percentage sign has multiple usages in Python. We use this operator to calculate the remainder for the division between two values for the arithmetic purpose. We can also use the percentage sign for various string […]

  • 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 […]

  • Print blank line in Python
    23 September

    Print blank line in Python

    The print() function can display some message or output in Python. Sometimes, the final result can be congested and unclear due to a need to display multiple or long outputs. What is a blank line in Python? We can use a blank line to display the final output in a clean, understandable way. A blank […]

  • 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 […]

  • Write array to CSV in Python
    30 August

    Python write array to CSV

    A CSV file is a simple text file, with data separated by commas. It can represent tabular data and viewed as spreadsheets. An array is used to store a collection of elements under a single name. We use the numpy module to deal with arrays in Python. We will discuss different methods on how to […]