Question: 
Write a function that gives profit amount if the given amount has profit else return none.


Model's Code:
def profit_amount(investment, current_value):
    profit = current_value - investment
    return profit if profit > 0 else None



Sample Correct Code:
def profit_amount(actual_cost,sale_amount): 
 if(actual_cost > sale_amount):
    amount = actual_cost - sale_amount
    return amount
 else:
    return None


Asserts:
assert profit_amount(1500,1200)==300
assert profit_amount(100,200)==None
assert profit_amount(2000,5000)==None


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 954 of 974: 730/954 (76.51991614255765%): failed