### Instruction: Tommy is making 12 loaves of bread. He needs 4 pounds of flour per loaf. A 10-pound bag of flour costs $10 and a 12-pound bag costs $13. When he is done making his bread, he has no use for flour and so he will throw away whatever is left. How much does he spend on flour if he buys the cheapest flour to get enough? Let's write a Python program.### Response: # Tommy needs 12*4 = 48 pounds of flour
# He can buy five 10-pound bags, which would cost 5*10 = $50
# Or he can buy four 12-pound bags, which would cost 4*13 = $52

# Python program to calculate the cost of flour

# Define the amount of flour needed
flour_needed = 12 * 4 

# Calculate the cost if Tommy buys 10-pound bags
cost_10_pound_bags = (flour_needed // 10 + 1) * 10

# Calculate the cost if Tommy buys 12-pound bags
cost_12_pound_bags = (flour_needed // 12 + 1) * 13

# Print the cheaper option
print(min(cost_10_pound_bags, cost_12_pound_bags))