• Remove quotation marks from String in Python
    13 February

    Remove Quotation Marks from String in Python

    Quotes in Python In Python, we can use single quotes or double quotes to define strings. A string itself may contain these quotes. Sometimes, we may have unexpected quotes within a string that needs to be dealt with. Remove Double Quotes from String in Python We will discuss different methods how to remove quotation marks […]

  • Parentheses from String in Python
    08 February

    Remove Parentheses from String in Python

    In this article, we will see how to remove parentheses from String in Python. Parentheses are normal brackets, generally used for function calling in Python. In strings, we can use them for clarity purposes like any other character. Sometimes on reading a string from unknown sources, we may find characters like this at uncanny positions. […]

  • Remove word from String in Python
    08 February

    Remove Word from String in Python

    Remove Word from String in Python In this tutorial, different methods are demonstrated on how to remove word from string in Python. We will study two ways to achieve this. First, we will discuss how to remove a specific word from sentences in Python. Then, we will discuss how to remove duplicate words from a […]

  • 22 January

    Replace space with underscore in Python

    Strings are an essential data type in programming. In Python, we can treat strings as an iterable of characters, and can perform a variety of functions and operations on them. Replacing characters in a string is one such operation. Ways to replace space with underscore in Python In this article, we will discuss various methods […]

  • Check if variable is String in Python
    13 January

    Check if variable is String in python

    In this post, we will see what is a string in Python and how to check whether a given variable is a string or not. There are many options in Python when it comes to making a choice of selecting a data type and this sometimes creates a need This tutorial focuses on and demonstrates […]

  • CharAt in Python
    08 January

    CharAt in Python

    In this tutorial, we will see about CharAt in Python. If you are already well verse in java and might be looking for charAt() alternative in Python, then you are at right place. In Python, you can get character of String similar to the way you access array elements in java. Here is simple code […]

  • 09 January

    Convert set to String in Python

    Sets are an unordered collection of elements in Python. It does not contain duplicate elements and can be defined using the set() function in Python. Ways to convert set to string in Python This tutorial will discuss how to convert a set to string and view it as the latter in Python. We can verify […]

  • Convert dict to String in Python
    17 December

    Convert dict to string in python

    In this post, we will see how to convert dict to String in Python. Python contains several data structures, and more often than not, there is a need for the conversion of one type to another. This tutorial focuses on and demonstrates the different ways available to convert a Dictionary object to a String in […]

  • Split String with multiple delimiters
    17 November

    Split String With Multiple Delimiters In Python

    In this post, we will see how to split String with multiple delimiters in Python. Splitting a string in Python When we talk about splitting a string, it means creating a collection of sub-strings out of a string. We can split a string by a character and create a list of sub-strings. In Python, we […]