• 19 May

    Remove Extension From Filename in Python

    While programming in python, we often have to deal with file names. In this article, we will discuss how we can Remove Extension From Filename in python.   How to Remove Extension From Filename in Python? To Remove Extension From Filename in python, we can use the functions provided in the os module or the pathlib […]

  • 19 May

    Get Type of Object in C++

    C++ is an object-oriented language where we often interact with objects of different types. The object interaction becomes more interesting when we add runtime polymorphism to it. The runtime polymorphism, also known as, dynamic dispatch of methods, or method overriding means that a class can override the implementation of a method defined in the parent […]

  • 19 May

    Remove First and Last Character of String in Python

    We use strings in python to handle text data. For processing the data, we sometimes need to remove one or more characters from the string. In this article, we will discuss how we can remove the first and the Last Character of string in python. We will also look at how we can remove the […]

  • 19 May

    Remove HTML Tags From String in Python

    While collecting data, we often need to process texts with HTML tags. In this article, we will discuss different ways to remove HTML tags from string in python. Remove HTML tags from string in python Using Regular Expressions Regular expressions are one of the best ways to process text data. We can also remove HTML […]

  • 19 May

    Get Directory Name From File Path in Python

    File operations are a fundamental part of python application development. In this article, we will discuss how we can get the directory name from the file path in python. Later, we will also discuss how we can remove filename from the file path in python. How to Get directory name from file path in python? […]

  • Read file line by line in C++
    17 February

    Read File Line by Line in C++

    C++ is a multi-domain programming language. It is widely used in embedded systems, game development, operating systems, etc. Therefore, we often come around situations where we need to read input from a file. Files are a great way to store the data permanently on the hard disk which is otherwise lost if the program exits. […]

  • Remove last character from String in C++
    16 February

    Remove Last Character From String in C++

    C++ is one of the most widely used programming languages. While programming in C++, we often come across text data. To represent text data in C++, we use string data type or an array of characters. In this article, we will discuss different ways to remove the last character from a string in C++. We […]

  • Object of Type int64 Is Not JSON Serializable
    01 February

    [Fixed] Object of Type int64 Is Not JSON Serializable

    JSON objects are used extensively in data transmission or in data interchange between different languages. To transmit data, we often convert the data to JSON objects. After that, we transmit the data. Sometimes, while creating a JSON object, your program might run into the TypeError exception with the message “object of type int64 is not […]

  • Python Unexpected Character After Line Continuation Character
    01 February

    [Fixed] SyntaxError: Unexpected Character After Line Continuation Character

    While programming in python, sometimes we need to write very long statements. For better presentation, we often use line continuation character. However, if you don’t use line continuation character correctly, SyntaxError occurs with the message “SyntaxError: unexpected character after line continuation character in python”. In this article, we will discuss the possible cases when this […]