• Get HTML from URL in Python
    24 February

    Get HTML from URL in Python

    HTML pages with Python Webpages are made using HTML. It is the programming code that defines the webpage and its contents. It is at the core of every website on the internet. We can access and retrieve content from web pages using Python. Python allows us to access different types of data from URLs like […]

  • 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 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

    💡 Outline To print percentage sign in Python, we can escape using the percentage sign twice instead of once. See the code below: [crayon-62fbe8ede643a882512981/] Output: The percentage is 92.27% 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 […]

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