It's bonus time in the big city! The fatcats are rubbing their paws in anticipation... but who is going to make the most money? 

Build a function that takes in two arguments (salary, bonus). Salary will be an integer, and bonus a boolean.

If bonus is true, the salary should be multiplied by 10. If bonus is false, the fatcat did not make enough money and must receive only his stated salary.

Return the total figure the individual will receive as a string prefixed with "£" (= `"\u00A3"`, JS, Go, and Java), "$" (C#, C++, Ruby, Clojure, Elixir, PHP and Python, Haskell, Lua) or "¥" (Rust).

Difficulty: introductory

Starter code:

def bonus_time(salary, bonus):
	

Solutions:
def bonus_time(salary, bonus):
    return "${}".format(salary * (10 if bonus else 1))

def bonus_time(salary, bonus):
    #your code here
    if bonus :
        return "$" + str(salary * 10)
    else:
        return "$" + str(salary)

def bonus_time(salary, bonus):
    return '$' + str(salary * [1,10][bonus])

def bonus_time(salary, bonus):
    return f"${salary * 10 if bonus else salary}"

def bonus_time(salary, bonus):
    
    return '${}'.format(salary * (1 + 9*bonus))

def bonus_time(salary, bonus):
    return "$" + str(salary * 10) if bonus == True else "$" + str(salary)

def bonus_time(salary, bonus):
    return '$%d' % (salary * 10 if bonus else salary)

def bonus_time(salary, bonus):
    if bonus: salary = salary * 10
    return str.format('${0}', salary)

bonus_time = lambda salary, bonus: '${}'.format(salary * 10 if bonus else salary)    

def bonus_time(salary, bonus):
    #your code here
    return "${0}{1}".format(salary, "0" if bonus else "")

def bonus_time(salary, bonus): return '${}'.format([salary, salary*10][bonus])

bonus_time = lambda s,b: "${}".format(s*(10*b or 1))

bonus_time = lambda salary, bonus: '${}'.format(salary * (10 if bonus else 1))

def bonus_time(salary, bonus):
    return '${0}'.format(salary * 10 if bonus else salary)

def bonus_time(salary, bonus):
    if bonus == True:
        return '$' + str(salary*10)
    else:
        return '$' + str(salary)

def bonus_time(salary, bonus):
    
    salary = int(salary)
    bonus = bool(bonus)
    
    if bonus is True:
        salary = salary * 10
    return "${}".format(salary)

def bonus_time(salary, bonus):
    #your code here
    if bonus :
        salary = salary * 10
        return "$" + str(salary)
    else:
        return "$" + str(salary)


def bonus_time(salary, bonus):
    if bonus == True:
        salary = salary * 10
    return "$" + str(salary)

def bonus_time(salary, bonus):
    return "$%d" % (salary * 10 ** bonus)

def bonus_time(salary, bonus):
    return '$%s%s' % (salary, '0' * bonus)

def bonus_time(salary, bonus):
    #your code here
    return f'${salary * 10}' if bonus else f'${salary}'

def bonus_time(salary, bonus):
    return ("$%d", "$%d0")[bonus] % salary

def bonus_time(salary, bonus):
    return '${}'.format(salary * 10 ** bonus)

def bonus_time(salary, bonus):
    return '$' + str(salary * 10 ** int(bonus))

def bonus_time(salary, bonus):
    return "$%d" % (salary * (bonus*9 + 1))

def bonus_time(salary, bonus):
    return '$' + str(salary*(10 if bonus else 1))

def bonus_time(salary, bonus):
    return f'${salary}{"0"*bonus}'

def bonus_time(salary, bonus):
    return f'${salary * (1 + bonus * 9)}'

def bonus_time(salary, bonus):
    return f'${salary * (bonus * 9 + 1)}'

def bonus_time(b, c):
    return f"${b}{'0'*c}"


def bonus_time(salary, bonus):
    return f"${salary}0" if bonus else f"${salary}"

def bonus_time(salary, bonus):
    return f"${salary + bonus * 9 * salary}"

def bonus_time(salary, bonus):
    return f'${salary * (1 + 9 * bonus)}'

def bonus_time(salary, bonus):
    return "$"+ str(int(salary) + (bonus * (9 * salary)))

def bonus_time(salary, bonus):
    return '$' + str(salary * 10 if bonus else salary)

def bonus_time(salary, bonus):
    return ('${}'.format(salary * 10) if bonus else '${}'.format(salary))

def bonus_time(salary, bonus):
    return ('${}'.format(salary),'${}'.format(salary*10))[bonus]

def bonus_time(salary, bonus):
    s = salary*10
    if bonus is True:
        return "$"+str(s)
    if bonus is False:
        return "$"+str(salary)


def bonus_time(salary, bonus):
    i = 0
    if bonus is True:
        i = salary*10
    if bonus is False:
        i = salary
    return '$'+ str(i)


def bonus_time(salary, bonus):
    if bonus == True:
        result = "$"+str(salary*10)
    elif bonus == False:
        result = "$"+str(salary)
    return result
    #your code here


def bonus_time(salary, bonus):
    a = lambda s, b: "${}".format(s*10) if b== True else "${}".format(s)
    return a(salary, bonus)

def bonus_time(salary, bonus):
    
    if bonus == True:
        salary=salary*10
        s='$'+str(salary)
        return s
    else:
        s='$'+str(salary)
        return s


def bonus_time(salary, bonus):
    if bonus==True:
        return '$'+str(salary)+'0'
    elif bonus==False:
        return '$'+str(salary)

bonus_time=lambda s,b:f'${s*(9*b+1)}'

def bonus_time(salary, bonus):
    if bonus == True:
       k = str(salary * 10)
    else:
       k = str(salary)
    return ('$'+k)

def bonus_time(s, bonus):
    if bonus==True:
        return "$"+str(s*10)
    else:
        return "$"+str(s) 
     
        
    #your code here


def bonus_time(s, b):
    return '${}'.format(s*10 if b else s)

def bonus_time(salary, bonus):
    #your code he
    b = salary
    if bonus:
        b*=10
    return "$"+str(b)

def bonus_time(salary, bonus):
    return "$" + str(salary * 10) if bonus == True else f"${salary}"

def bonus_time(salary, bonus):
    return '$' + str((1, 10)[bonus] * salary)

def bonus_time(salary, bonus):
    if bonus:
        return F"${((salary * 10))}"
    return F"${salary}"

def bonus_time(salary, bonus):
    if bonus == True:
        salary = salary * 10
    amt = str(salary)
    return "${}".format(amt)

bonus_time = lambda s, b:f'${s+s*b*9}'

def bonus_time(salary, bonus):
    #your code here
    if(bonus==True):
        s=str(salary*10)
        return "$"+s
    else:
        salary=str(salary)
        return "$"+salary

def bonus_time(salary:int, bonus:bool):
    if bonus is True:
        return ("$"+str(salary*10))
    return ("$"+str(salary))

def bonus_time(salary, bonus):
    #your code here
    ln = ''
    if bonus:
        ln += '0'
    else:
        ln
    return f'${salary}{ln}'

def bonus_time(a, b):
    return f"${a*10 if b else a}"

def bonus_time(salary, bonus):
    return f"{'$'+str(salary*10)}" if bonus else f"{'$'+str(salary)}"

def bonus_time(salary, bonus):
    #your code here
    x=lambda salary,bonus: str('$'+str(salary*10)) if(bonus==True) else str('$'+str(salary))
    return x(salary,bonus)

def bonus_time(salary, bonus):
    if bonus == True:
        s = salary*10
        s=str(s)
        return '$'+s
    else:
        s = str(salary)
        return '$'+s

def bonus_time(salary, bonus):
    if bonus:
        payday = salary * 10
        return '$' + str(payday)
    else:
        return '$' + str(salary)

def bonus_time(salary, bonus):
    return f"${int(salary) * 10}" if bonus else f"${salary}"

def bonus_time(salary, bonus):
    return "$"+str(salary) if bonus is False else "$"+str(salary*10)

def bonus_time(salary, bonus):
    return "$%d" % (salary*10 if bonus==True else salary)

bonus_time = lambda salary, bonus: bonus and "$" + str(salary * 10) or "$" + str(salary)

def bonus_time(salary, bonus):
    if bonus == True:
        new = salary * 10
        return str("$" + str(new))
    else:
        return str("$" + str(salary))

def bonus_time(salary, bonus):
    #your code here
    if bonus == True:
        m = salary*10
        return '$'+str(m)
    return '$'+str(salary)

def bonus_time(salary, bonus):
    if (bonus == True):
        salary=salary*10
    else:
        salary=salary+0
    return ("$"+str(salary))


def bonus_time(salary, bonus):
    if bonus == True:
        result = salary * 10
    else:
        result = salary
    
    return f"${result}"

bonus_time = lambda s, b: f"${s*10 if b else s}"

def bonus_time(salary, bonus):
    return "${}".format(str(salary * 10)) if bonus == True else "${}".format(salary)

def bonus_time(salary, bonus):
    return '$%d' % (salary * (9 * bonus + 1))

def bonus_time(salary, bonus):
    if bonus == True:
        s = salary*10
    else:
        s = salary
    return str('$'+str(s))


def bonus_time(salary, bonus):
    b = salary*10 if bonus else salary
    return "$" + str(b)

def bonus_time(salary, bonus):
    x = salary * 10
    
    if bonus == True:
        return f'${x}'
    elif bonus == False:
        return f'${salary}'

def bonus_time(s, b):
    return "$" + (str(s * 10) if b == True else str(s)) #this is not the correct answer

def bonus_time(salary, bonus):
    x = str(int(salary) * 10)
    y = str(int(salary))
    if bonus == True:
        return str('$')+ x
    else:
        return str('$')+ y

def bonus_time(salary, bonus):
    return f'${salary}' + '0' if bonus == True else f'${salary}'

def bonus_time(salary, bonus):
    if bonus == True:
        salary *= 10
        a = "${}".format(salary)
        return a
    return "$" + str(salary)
    #your code here


def bonus_time(salary, bonus):
    pay = salary * 10 if bonus else salary
    return f"${pay}"

def bonus_time(salary, bonus):
    if bonus == True:
        return f"${salary}0"
    else:
        return f"${salary}"

def bonus_time(salary, bonus):
    x = salary;
    y = 10 * salary
    if bonus:
        return '$'+ str(y)
    else:
        return '$'+ str(x)

def bonus_time(salary, bonus):
    if not bonus:
        return f"${salary}"
    else:
        return f"${salary * 10}"
    
    
    


def bonus_time(salary, bonus):
    #your code here
    total = ''
    if bonus == True:
        return total + '$' + str(salary * 10)
    return total + '$' + str(salary)

def bonus_time(salary, bonus):
    if bonus:
        salary = salary * 10
    x = str(salary)
    return '$'+x
    #your code here


def bonus_time(salary, bonus):
    result = str(salary*10) if bonus else str(salary)
    return "${}".format(result)

def bonus_time(salary, bonus):
    return '${}'.format(salary * (10 if bonus == True else 1))

def bonus_time(salary, bonus):
    #your code here
    new_salary = salary * 10
    if bonus == True:
        return "$" + str(new_salary)
    return "$" + str(salary)

def bonus_time(salary, bonus):
    if bonus == True:
        total = salary * 10
        return "$" + str(total)
    if bonus == False:
        return "$" + str(salary)

def bonus_time(salary, bonus):
    dollar = "$"
    if bonus == True:
        result = str(salary*10)
        return dollar + result
    elif bonus==False:
        return "$" + str(salary)

def bonus_time(salary, bonus):
    pay = str(salary*10) if bonus else str(salary)
    return '${}'.format(pay)

def bonus_time(salary, bonus):
    i = salary * 10
    k = salary
    if bonus == True:
        return "$" + str(i)
    else:
        return "$" + str(k) 


def bonus_time(salary, bonus):
    total = salary
    if bonus:
        salary *= 10
    return '$%d' % (salary)

def bonus_time(salary, bonus):
    int(salary)
    bool(bonus)
    if bonus == 1 :
        return "$" + str(salary * 10)
    elif bonus == 0 :
        return "$" + str(salary)


def bonus_time(s, b):
    return "$"+ str(s*(10 if b else 1))

def bonus_time(salary, bonus):
    #your code here
    sum='$'
    if bonus==True: 
        salary=salary*10
        salary=str(salary)
        return sum+salary
    return sum+ str(salary)


def bonus_time(salary: int, bonus: bool) -> str:
    """
    If bonus is true, the salary should be multiplied 10.
    If bonus is false, one must receive only his stated salary.
    """
    return "$" + str(salary * 10) if bonus else "$" + str(salary)


def bonus_time(salary, bonus):
    if bonus == True:
        wow =(salary * 10)
        return '$' + str(wow)
    else:
        bonus == False
        return '$' + str(salary)

def bonus_time(salary, bonus):
    if bonus == True:
        amount = salary * 10
        return "$"+ str(amount)
    elif bonus == False:
        return "$"+ str(salary)