• 30 May

    Count Down in a for Loop in Python

    How to count down in a for loop in Python? A loop is a basic tool of programming that allows us to execute some code till a given set of conditions returns True. The for loop is one such loop available in many programming languages. In Python, we can use the for loop to iterate […]

  • 25 May

    Count Decimal Places in Python

    How to count decimal places in Python? In Python, we can represent decimal values using the float datatype. The decimal point divides the integer from the fractional part. The maximum value a float object can have is 1.8 x 10^308. In this article, we will discuss how to count the decimal places in Python. We […]

  • 24 May

    Replace Comma with Space in List in Python

    In this post, we will see how to replace comma with space in the list. How to replace comma with space in list in Python A list is one of the fundamental collection objects in Python. It can store multiple elements and we can access these elements using their respective index. When we display a […]

  • 24 May

    Print Degree Symbol in Python

    How to print degree symbol in Python? In Python, we use the print() function to display some characters. We can not only print the characters visible on our keyboard but can also display the characters that belong to the Unicode character set. In this article, we will learn how to print degree symbol in Python. […]

  • 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

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

  • 19 May

    Remove xa0 from String in Python

    In this post, we will see how to remove xa0 from String in python Python programmers have to deal with large amounts of various Unicode characters that appear when parsing HTML files and while using the Beautiful Soup library for dealing with HTML files. One such Unicode character is the xa0, which represents spaces in […]