def add(self, loan_id, amount):
assert amount > <NUM_LIT:0> and amount % <NUM_LIT> == <NUM_LIT:0>, '<STR_LIT>'<EOL>assert type(amount) in (float, int), '<STR_LIT>'<EOL>if type(loan_id) is dict:<EOL><INDENT>loan = loan_id<EOL>assert '<STR_LIT>' in loan and type(loan['<STR_LIT>']) is int, '<STR_LIT>'<EOL>loan_id = loan['<STR_LIT>']<EOL><DEDENT>assert type(loan_id) in [str, unicode, int], '<STR_LIT>'<EOL>self.loans[loan_id] = amount<EOL>
Add a loan and amount you want to invest, to your order.
If this loan is already in your order, it's amount will be replaced
with the this new amount

Parameters
----------
loan_id : int or dict
    The ID of the loan you want to add or a dictionary containing a `loan_id` value
amount : int % 25
    The dollar amount you want to invest in this loan, as a multiple of 25.