Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
# for comment
# store input data in variables
cost_of_ice_bag = 2
number_of_bag = 1000
profit_per_bag = 0.40
#perform the required calculation
profi_per_bag = cost_of_ice_bag * profit_margin
total_profit = number_of_bag * profit_per_bag
# display the result
print("The grocery store makes a total profit $" , total_profit )
The grocery store makes a total profit $ 400.0
# taype of comment
my_favorite_number = 1 # an inline comment
# this comment gets own line
my_lucky_number = 18