<reponame>1067511899/tornado-learn
'''
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 '£' (JS and Java) or '$' (C#, C++, Ruby, Clojure, Elixir, PHP and Python).
'''
def bonus_time(salary, bonus):
    if bonus:
        salary *= 10
    return '${}'.format(salary)

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

if __name__ == '__main__':
    print(bonus_time(67890, True))

'''
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 '£' (JS and Java) or '$' (C#, C++, Ruby, Clojure, Elixir, PHP and Python).
'''
def bonus_time(salary, bonus):
    if bonus:
        salary *= 10
    return '${}'.format(salary)

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

if __name__ == '__main__':
    print(bonus_time(67890, True))
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 '£' (JS and Java) or '$' (C#, C++, Ruby, Clojure, Elixir, PHP and Python).