Learn practical skills, build real-world projects, and advance your career
cost_of_ice_bag = 1.25
profit_margin = .2
number_of_bags = 100

profit_per_bag = cost_of_ice_bag * profit_margin
total_profit = number_of_bags * profit_per_bag

print("The grocery store makes a total profit of $", total_profit)
The grocery store makes a total profit of $ 25.0

Evaluation Conditions in Python

my_favourite_number = 1
my_least_favourite_number = 5
a_neutral_number = 3
my_favourite_number == 1
True
my_favourite_number == my_least_favourite_number
False