def format_number(singular, number):
    value = {'value': number} % singular
    # Get rid of the .0 but keep the other decimals
    return value.replace('.0', '')
dataset/ETHPy150Open badges/pypipins/shields/shields.py/format_number/swapped operands of `%`