• 02 November

    Print without Parentheses in Python

    How to Print without Parentheses in Python The upgrade of Python 2 to 3 introduced several critical changes to the existing Python functionality. One such change was done to the print statement. In Python 2, we used print as a statement. We have seen people stating to use parentheses with print in Python 3. This […]

  • 27 October

    Add Spaces Between Characters in Python

    A string is the generic data type that is offered by Python to store and represent a series of Unicode characters. There might be a need to add a space between all characters of a given string. This tutorial focuses on and demonstrates the different ways available to add spaces between characters in Python. The […]

  • 26 October

    Add Commas to String in Python

    A string is capable of holding both numeric characters and letters of the alphabet. There may sometimes be a need to add commas to relevant spaces in a string containing numerical values in order to represent the number according to the specified currency system. This tutorial focuses on and demonstrates the different ways available to […]

  • 26 October

    Get Number of Business Days Between Two Dates in Python

    Python provides the datetime object to store and work with date and time values. These objects are compatible with various libraries and can be manipulated using different functions from such libraries. One such operation is getting all the dates between a given range. This can be done in different ways as well using various functions. […]

  • 25 October

    Get All Dates Between Two Days in Python

    In Python, we can efficiently work with date and time values using the datetime library. This library provides datetime objects that can store such data. The dateutil, arrow libraries also allow us to process such values in Python. Get All Dates Between Two Days in Python In this tutorial, we will discuss how to get […]

  • 25 October

    Get First Day of Month in Python

    The datetime objects defined in the datetime library provide a convenient way to store date and time values. Other libraries like dateutil also provide extended functionalities that can be used with such objects. In this tutorial, we will discuss how to get first day of month in Python. Get First Day of Month in Python […]

  • 21 October

    Remove time from datetime in Python

    The Datetime library in Python The datetime library is a standard Python library that can be used to store and process date and time values. The library implements the datetime class that can store these values and manipulates them. We can use the constructor of this class to create such objects and initialize them with […]

  • 04 October

    Get Every Other Element in List in Python

    A list is one of the more versatile data types among the others provided in Python. As we know lists can store multiple items in one single variable, there is often a need to get only a handful of items from a given list. Get Every Other Element in List in Python This tutorial focuses […]

  • 03 October

    Convert String to Raw String in Python

    Raw strings provide a useful way to describe strings in Python so that the backslashes and their succeeding characters are not interpreted as escape sequences. The interpreter does not implement the escape sequence in such strings but rather considers them as normal characters. This tutorial will demonstrate how to convert string to raw string in […]