Acquisition Threshold
Capital One has two levels of customer acquisition strategies for customers that are opening credit cards.
For high spending customers, Capital One will give clients a one-time bonus of 800 dollars. For everyone else, they give a 100 dollar bonus.
Write a function in Python that takes a list of client spends as floats and figures out the threshold to divide the high spending vs low spending customers.
Example:
Input:
customers_spending = [1000, 1001, 1002, 1003, 1004, 1005,
1006, 1007, 1008, 1009, 1010, 1011, 1012]
margin = 0.1
Output:
get_threshold(customers_spending, margin) -> 1012.0
Next question: Email Campaign.....
Loading editor