Learn practical skills, build real-world projects, and advance your career
Cost of ice bag  = 1.25

Profit margin = 20% = .2

Profit per bag = profit margin * cost of ice bag = .2 * 1.25

No. of bags = 500

Total profit = no. of bags * profit per bag = 500 * (.2 * 1.25)
File "<ipython-input-2-161735649c65>", line 1 Cost of ice bag = 1.25 ^ SyntaxError: invalid syntax
500 * (.2 * 1.25)
125.0
cost_of_ice_bag = 1.25
profit_margin = .2
number_of_bags = 500
profit_margin
0.2
profit_per_bag = cost_of_ice_bag * profit_margin
total_profit = 125