消費ベースの価格設定モデルと固定価格設定モデルの比較
def calculate_consumption_based_price(usage): base_price = 10 price_per_unit = 0.5 total_price = base_price + (price_per_unit * usage) return total_price usage = 100 price = calculate_consumption_based_price(usage) print("Total price: $" + str(price))>>More