Commissions =========== The head of a bank office sells two different types of products: bank deposits and preferred stocks. For each product, if the head sells 500.000€ or more, he gains a commission on the total sold: a 0.05% for bank deposits and a 3% for preferred stocks. If the head sells less than 500.000€, his commission is 0€. Write the function :py:func:`commissions` that takes the amount of bank deposits and the amount of preferred stock (real values) sold by the bank head, and returns the commission (real) which corresponds to the bank head. Save the function into a file :file:`commissions.py`. The function must pass the following doctest: .. literalinclude:: commissions.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`commissions.txt` file. .. rubric:: Solutions A solution of these functions is provided in the :download:`commissions.py` file.