# Run the greedy optimization (best_google, best_facebook, best_twitter), obj = greedy_optimization(TOTAL_BUDGET, alphas, betas) # Print the result print('='*59 + 'n' + ' '*24 + 'Solution' + ' '*24 + 'n' + '='*59) print(f'Returns = ${round(obj):,}n') print('Marketing allocation:') print(f' - Google Ads = ${round(best_google):,}') print(f' - Facebook Ads = ${round(best_facebook):,}') print(f' - Twitter Ads = ${round(best_twitter):,}')