def get_string_commas_num( num ):
    """
    This is the secret-sauce of formatting integers as strings with commas for every 3 digits. For example, ``1234`` becomes "1,234". I copied code from `this location`_.

    :param int num: input number.
    :returns: the nicely formatted output :py:class:`string <str>` representing an input number.
    :type: str

    .. _`this location`: https://intellipaat.com/community/2447/how-to-print-number-with-commas-as-thousands-separators
    """
    return "%s" % f"{num:,d}"