id
stringlengths
23
26
text
stringlengths
20
1.37k
format
stringclasses
2 values
messages
listlengths
2
4
⌀
family
stringclasses
1 value
sub
stringclasses
3 values
variant
stringclasses
1 value
variant_of
stringclasses
0 values
generator
stringclasses
1 value
sources
listlengths
0
0
source_ids
listlengths
0
0
n_tokens_alea
int64
8
494
meta
stringlengths
47
170
nlprog_det-setting-0067998
<|start|><|user|> Shipping costs $12 plus $2.50 per pound. What does a 30-pound parcel cost to ship?<|eot|> <|assistant|> The charge is $87.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Shipping costs $12 plus $2.50 per pound. What does a 30-pound parcel cost to ship?" }, { "role": "assistant", "content": "The charge is $87.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "87.00", "printed": "87.00", "notation": null}
nlprog_det-setting-0067999
How many units at $20 each (variable cost $16) cover $9,000 of fixed costs? Python, step by step: ```python import math fixed = 9000 price = 20 variable = 16 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` The run gives 2250. Break-even is 2250 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0068000
A pack of 12 flash drives sells for $84. What does each cost? ```python total = 84 count = 12 per_item = total // count # 7 print(per_item) ``` Output = 7 The unit price is $7.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0068001
With $8,000 in costs and $13,000 in revenue, what percent of revenue is profit? Round to one decimal. ```python revenue = 13000 costs = 8000 profit = revenue - costs # 5000 margin = profit / revenue * 100 # 38.46153846153847 print(round(margin, 1)) ``` The interpreter prints: 38.5 Profit is 38.5% of revenue.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "38.5", "printed": "38.5", "notation": null}
nlprog_det-setting-0068002
<|start|><|system|> Available functions (JSON Schema): [{"name": "py_exec", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Mei and Helga...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"py_exec\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
238
{"gold": "226", "printed": "226", "notation": null}
nlprog_det-setting-0068003
<|start|><|user|> Pack A has 6 items for $7.57. Pack B has 15 items for $8.90. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 7.57 / 6 # 1.2616666666666667 pack_b = 8.9 / 15 # 0.5933333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Out: B) Pack B is cheape...
chat
[ { "role": "user", "content": "Pack A has 6 items for $7.57. Pack B has 15 items for $8.90. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 7.57 / 6 # 1.2616666666666667\npack_b = 8.9 / 15 # 0.5933333333333334\ncheaper = \"A\" if pack_a < pack_b el...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0068004
At 1% a month (simple), what interest builds on $7,500 over 2 months? $150.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0068005
<|start|><|user|> How many whole days and leftover hours are in 198 hours?<|eot|> <|assistant|> ```python hours = 198 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` This prints: 8 days and 6 hours That is 8 days and 6 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 198 hours?" }, { "role": "assistant", "content": "```python\nhours = 198\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nThis prints: 8 days and 6 hours\n\nThat is 8 days and 6 hours." }...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "8 days and 6 hours", "printed": "8 days and 6 hours", "notation": null}
nlprog_det-setting-0068006
A recipe for 8 people uses 300 grams of lentils. How many grams are needed for 10 people? Python does the arithmetic: ```python grams = 300 serves = 8 needed_for = 10 scaled = grams * needed_for // serves # 375 print(scaled) ``` # console output: 375 Use 375 g of lentils.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "375", "printed": "375", "notation": null}
nlprog_det-setting-0068007
Under a 35% contingency agreement, what fee is owed on a $40,000 award? Computation in Python: ```python recovery = 40000 rate = 35 / 100 fee = recovery * rate print(f"{fee:.2f}") ``` Output of the run: 14000.00 The lawyer's fee comes to $14,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0068008
How many of 144 votes make 75% (round up)? As a program: ```python import math voters = 144 needed = math.ceil(voters * 75 / 100) # 108 print(needed) ``` Out = 108 108 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0068009
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> Goods bought on November 21, 2024 carry a 18-month warranty. When does it expire?<|eot|> <|assistant|> ```python from datetime import date start = date(2024, 11, 21) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.y...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "Goods bought on November 21, 2024 carry a 18-month warranty. When does it expire?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2024, 11, 21)\nm...
nlprog_det
setting
original
null
deterministic
[]
[]
166
{"gold": "2026-05-21", "printed": "2026-05-21", "notation": null}
nlprog_det-setting-0068011
Divide 261 items among 9 groups as evenly as possible with equal groups. How many per group, and how many remain? Programmatically: ```python total = 261 groups = 9 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Python prints 29 each, 0 left over. 29 each, 0 left ov...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "29 each, 0 left over", "printed": "29 each, 0 left over", "notation": null}
nlprog_det-setting-0068013
At $0.70 per mile, what is the reimbursement for 62 miles? ```python miles = 62 rate = 0.7 reimbursement = miles * rate # 43.4 print(f"{reimbursement:.2f}") ``` stdout: 43.40 Marek is owed $43.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "43.40", "printed": "43.40", "notation": null}
nlprog_det-setting-0068014
<|start|><|user|> Walls total 943 sq ft and each can covers 400 sq ft. How many cans should be bought?<|eot|> <|assistant|> 3 cans are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 943 sq ft and each can covers 400 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "3 cans are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0068015
Of a $8,000 budget, $4,000 has been spent. What percent is that? Computation in Python: ```python budget = 8000 spent = 4000 percent = spent / budget * 100 # 50.0 print(round(percent, 1)) ``` The script prints 50.0, as expected. 50.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "50.0", "printed": "50.0", "notation": null}
nlprog_det-setting-0068016
A $24,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? A Python solution: grant = 24000 up_front = 0 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") The run gives: 2000.00 Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0068017
<|start|><|system|> You are a careful reviewer of figures.<|eot|> <|user|> A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 13 thousand gallons?<|eot|> <|assistant|> base = 15 rate = 4.2 used = 13 free = 0 bill = base + rate * max(0, used - free) ...
chat
[ { "role": "system", "content": "You are a careful reviewer of figures." }, { "role": "user", "content": "A water bill is $15 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 13 thousand gallons?" }, { "role": "assistant", "content": " base = 15\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "69.60", "printed": "69.60", "notation": null}
nlprog_det-setting-0068018
Tariq's scores were 79, 99, 76, 59, 96 and 65. What is the average score? As a program: scores = [79, 99, 76, 59, 96, 65] average = sum(scores) // len(scores) # 79 print(average) Executing it gives: 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0068019
<|start|><|user|> Fixed costs are $1,200. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 1200 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 300 print(units) ``` It prints 300. 300 units are needed....
chat
[ { "role": "user", "content": "Fixed costs are $1,200. Each unit sells for $15 and costs $11 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 1200\nprice = 15\nvariable = 11\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0068020
<|start|><|user|> 17 chairs cost $5 apiece. With 5% tax added, what is the total?<|eot|> <|assistant|> ```python quantity = 17 unit_price = 5 subtotal = quantity * unit_price # 85 total = subtotal * (1 + 5 / 100) # 89.25 print(f"{total:.2f}") ``` The run gives 89.25, as expected. The total with tax is $89.25.<|eot|>...
chat
[ { "role": "user", "content": "17 chairs cost $5 apiece. With 5% tax added, what is the total?" }, { "role": "assistant", "content": "```python\nquantity = 17\nunit_price = 5\nsubtotal = quantity * unit_price # 85\ntotal = subtotal * (1 + 5 / 100) # 89.25\nprint(f\"{total:.2f}\")\n```\nThe run ...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "89.25", "printed": "89.25", "notation": null}
nlprog_det-setting-0068021
Convert 4 h 50 min (the length of a hearing) to minutes. As a program: hours = 4 minutes = 50 total_minutes = hours * 60 + minutes # 290 print(total_minutes) # printed: 290 The hearing lasted 290 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "290", "printed": "290", "notation": null}
nlprog_det-setting-0068022
<|start|><|system|> You can call tools. Available tools: [{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}]<|eot|> <|user|> Goods boug...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"...
nlprog_det
setting
original
null
deterministic
[]
[]
279
{"gold": "2021-05-25", "printed": "2021-05-25", "notation": null}
nlprog_det-setting-0068024
Starting with 252 headsets and using 26 per day, how many remain after 9 days? 18 headsets are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068025
124 of 200 members attended. What percent attended? Python code: ```python present = 124 total = 200 percent = present / total * 100 # 62.0 print(round(percent, 1)) ``` Program output: 62.0 62.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "62.0", "printed": "62.0", "notation": null}
nlprog_det-setting-0068026
A 24-month warranty starts on August 20, 2021. On what date does it end? In code: ```python from datetime import date start = date(2021, 8, 20) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` (Execution result: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "2023-08-20", "printed": "2023-08-20", "notation": null}
nlprog_det-setting-0068027
Starting from $25,000, the team spends $2,740, $3,633, $3,898, $1,789. What remains? Programmatically: ```python budget = 25000 expenses = [2740, 3633, 3898, 1789] left = budget - sum(expenses) # 12940 print(left) ``` # result: 12940 The remaining budget is $12,940.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "12940", "printed": "12940", "notation": null}
nlprog_det-setting-0068028
<|start|><|user|> Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 4.2 used = 12 free = 0 bill = base + rate * max(0, used - free) # 65.4 print(f"{bill:.2f}") ``` Result — 65.40 $65.40 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Water costs $15 a month plus $4.20 for each 1,000 gallons over 0,000. What is owed for 12,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 4.2\nused = 12\nfree = 0\nbill = base + rate * max(0, used - free) # 65.4\nprint(f\"{bill:.2f}...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "65.40", "printed": "65.40", "notation": null}
nlprog_det-setting-0068029
<|start|><|user|> A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.2 used = 20 free = 0 bill = base + rate * max(0, used - free) # 96.0 print(f"{bill:.2f}") ``` (Run result: 96.00) The bill is $...
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 20 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 4.2\nused = 20\nfree = 0\nbill = base + rate * max(0, used - free) # 96.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "96.00", "printed": "96.00", "notation": null}
nlprog_det-setting-0068030
Omar earns $22.40 an hour and time and a half for hours over 40. What is the pay for a 44-hour week? A short script: ```python rate = 22.4 hours = 44 regular = 40 * rate # 896.0 overtime = (hours - 40) * rate * 1.5 # 134.39999999999998 pay = regular + overtime # 1030.4 print(f"{pay:.2f}") ``` Execution result: 1030...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "1030.40", "printed": "1030.40", "notation": null}
nlprog_det-setting-0068031
<|start|><|user|> A 4% increase is applied to $1,800 monthly rent. What is the new amount?<|eot|> <|assistant|> ```python rent = 1800 increase = 4 / 100 new_rent = rent * (1 + increase) print(f"{new_rent:.2f}") ``` It outputs 1872.00. It rises to $1,872.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 4% increase is applied to $1,800 monthly rent. What is the new amount?" }, { "role": "assistant", "content": "```python\nrent = 1800\nincrease = 4 / 100\nnew_rent = rent * (1 + increase)\nprint(f\"{new_rent:.2f}\")\n```\nIt outputs 1872.00.\n\nIt rises to $1,872.0...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "1872.00", "printed": "1872.00", "notation": null}
nlprog_det-setting-0068032
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "calc", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|u...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"calc\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python...
nlprog_det
setting
original
null
deterministic
[]
[]
237
{"gold": "2023-09-23", "printed": "2023-09-23", "notation": null}
nlprog_det-setting-0068033
A $120 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? Script: ```python bill = 120 tip_rate = 15 / 100 people = 5 each = bill * (1 + tip_rate) / people print(f"{each:.2f}") ``` The run gives 27.60. The share is $27.60 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "27.60", "printed": "27.60", "notation": null}
nlprog_det-setting-0068034
4 boxes hold 24 batteries each. After 6 are handed out, how many are left? Python does the arithmetic: ```python boxes = 4 per_box = 24 given_away = 6 left = boxes * per_box - given_away # 90 print(left) ``` It prints 90. 90 batteries are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0068035
Tomas earns a 3% commission on $62,376 of sales. What is the commission? Python does the arithmetic: ```python sales = 62376 rate = 3 / 100 # 0.03 commission = sales * rate # 1871.28 print(f"{commission:.2f}") ``` The program outputs 1871.28. The commission is $1,871.28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1871.28", "printed": "1871.28", "notation": null}
nlprog_det-setting-0068036
<|start|><|system|> Functions: [{"name": "calc", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|user|> A $210 dinner bill gets a 18% t...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"progra...
nlprog_det
setting
original
null
deterministic
[]
[]
228
{"gold": "123.90", "printed": "123.90", "notation": null}
nlprog_det-setting-0068037
An invoice lists 21 sticky pads at $8 each, plus 7% sales tax. What is the invoice total? One way, in code: ```python quantity = 21 unit_price = 8 subtotal = quantity * unit_price # 168 total = subtotal * (1 + 7 / 100) # 179.76000000000002 print(f"{total:.2f}") ``` # output: 179.76 The invoice total is $179.76.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "179.76", "printed": "179.76", "notation": null}
nlprog_det-setting-0068038
Split $6,608 between Noor and Jae in the ratio 3 to 5. What is Noor's share? A few lines of Python do it: total = 6608 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 2478 print(share_a) Run output: 2478 Noor gets $2,478.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "2478", "printed": "2478", "notation": null}
nlprog_det-setting-0068039
Copies cost $15 plus $0.50 for each page beyond 20. How much for 70 pages? Coded up: ```python pages = 70 base = 15 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 40.0 print(f"{cost:.2f}") ``` Running it prints 40.00. The copy costs $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0068040
<|start|><|system|> You can call tools. Available tools: [{"name": "eval_python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|user|> Monthly...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"eval_python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}...
nlprog_det
setting
original
null
deterministic
[]
[]
218
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068041
At a 6% tax rate, what is the tax on $495.09? Here's the code. price = 495.09 tax_rate = 6 / 100 # 0.06 tax = price * tax_rate # 29.705399999999997 print(f"{tax:.2f}") stdout — 29.71 $29.71 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "29.71", "printed": "29.71", "notation": null}
nlprog_det-setting-0068042
Sales went from 2,000 to 2,400. What is the percent change? Python makes this quick: ```python old = 2000 new = 2400 change = (new - old) / old * 100 # 20.0 print(round(change)) ``` The run gives: 20 The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0068043
How many minutes pass from 7:08 AM to 8:13 AM on the same day? One way, in code: ```python start = 7 * 60 + 8 # 428 end = 8 * 60 + 13 # 493 print(end - start) ``` The program outputs: 65 65 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0068044
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> ```python monthly_rent = 2875 months = 18 total = monthly_rent * months print(total) ``` Execution prints 51750. In total, $51,750 is paid...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "A lease runs for 18 months at $2,875 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 2875\nmonths = 18\ntotal = mo...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "51750", "printed": "51750", "notation": null}
nlprog_det-setting-0068045
<|start|><|user|> Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 5 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Run result = 3200.00 Depreciatio...
chat
[ { "role": "user", "content": "Equipment costs $18,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 5\nper_year = (cost - salvage) / years\npri...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0068046
Which is cheaper per unit: 10 for $7.38 (A) or 24 for $15.34 (B)? Script: ```python pack_a = 7.38 / 10 # 0.738 pack_b = 15.34 / 24 # 0.6391666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Execution prints B, as expected. Pack B is cheaper per item.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0068047
6 claimants share a $15,000 settlement equally. What is each share? In Python: settlement = 15000 parties = 6 share = settlement // parties # 2500 print(share) stdout: 2500 Each party receives $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0068048
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> Someone born August 12, 1995 turns how old by April 4, 2023? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1995, 8, 12) # datetime.date(1995, 8, 12) on = date(2023, 4, 4) # datetime.date(2023, 4, 4) ag...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "Someone born August 12, 1995 turns how old by April 4, 2023? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1995, 8, 1...
nlprog_det
setting
original
null
deterministic
[]
[]
166
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0068049
What is a 10% tip on a $116.49 bill? Leave $11.65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
23
{"gold": "11.65", "printed": "11.65", "notation": null}
nlprog_det-setting-0068050
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"snippet": {"type": "string", "description": "Python source code"}}, "required": ["snippet"]}}, {"name": "conve...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"snippet\": {\"type\": \"string\", \"description\": \"Python source c...
nlprog_det
setting
original
null
deterministic
[]
[]
340
{"gold": "42", "printed": "42", "notation": null}
nlprog_det-setting-0068051
<|start|><|user|> 11 boxes hold 6 headsets each. After 10 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 11 per_box = 6 given_away = 10 left = boxes * per_box - given_away # 56 print(left) ``` When run, it prints 56, as expected. 56 headsets are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "11 boxes hold 6 headsets each. After 10 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 11\nper_box = 6\ngiven_away = 10\nleft = boxes * per_box - given_away # 56\nprint(left)\n```\nWhen run, it prints 56, as expected.\n...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0068052
A water bill is $15 plus $3.50 per thousand gallons beyond the first 3 thousand. What is the bill for 25 thousand gallons? Translated to Python: base = 15 rate = 3.5 used = 25 free = 3 bill = base + rate * max(0, used - free) # 92.0 print(f"{bill:.2f}") The program prints 92.00. $92.00 is owe...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "92.00", "printed": "92.00", "notation": null}
nlprog_det-setting-0068053
202 files go into boxes of 15. How many boxes does that take? In Python: ```python import math files = 202 per_box = 15 boxes = math.ceil(files / per_box) # 14 print(boxes) ``` stdout: 14 14 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0068054
<|start|><|system|> You are a logic tutor.<|eot|> <|user|> A hearing is set for December 21, 2000. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2000, 12, 21) print(hearing.strftime("%A")) ``` Output of the run — Thursday It is a Thursday.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a logic tutor." }, { "role": "user", "content": "A hearing is set for December 21, 2000. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2000, 12, 21)\nprint(hearing.strf...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0068055
A recipe for 2 people uses 100 grams of pasta. How many grams are needed for 12 people? As Python: ```python grams = 100 serves = 2 needed_for = 12 scaled = grams * needed_for // serves # 600 print(scaled) ``` The interpreter prints: 600 600 grams of pasta are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0068056
<|start|><|user|> A settlement of $15,000 is split equally among 3 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 15000 parties = 3 share = settlement // parties # 5000 print(share) ``` Executing it gives: 5000 Each party receives $5,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $15,000 is split equally among 3 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 15000\nparties = 3\nshare = settlement // parties # 5000\nprint(share)\n```\nExecuting it gives: 5000\n\nEach ...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5000", "printed": "5000", "notation": null}
nlprog_det-setting-0068057
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value",...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
333
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0068058
An unpaid balance of $1,000 accrues 1% simple interest per month. How much interest accrues in 2 months? Computation in Python: balance = 1000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 20.0 print(f"{interest:.2f}") stdout = 20.00 $20.00 accrues.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0068059
Prorate $2,400 of monthly rent for 19 days of a 30-day month. A few lines of Python do it: ```python rent = 2400 days_in_month = 30 days_occupied = 19 prorated = rent * days_occupied / days_in_month # 1520.0 print(f"{prorated:.2f}") ``` Printed: 1520.00 The tenant owes $1,520.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1520.00", "printed": "1520.00", "notation": null}
nlprog_det-setting-0068060
<|start|><|user|> How many days are there from November 21, 2021 to June 9, 2022?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 11, 21) # datetime.date(2021, 11, 21) second = date(2022, 6, 9) # datetime.date(2022, 6, 9) print((second - first).days) ``` Running it prints 200, as expected....
chat
[ { "role": "user", "content": "How many days are there from November 21, 2021 to June 9, 2022?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 11, 21) # datetime.date(2021, 11, 21)\nsecond = date(2022, 6, 9) # datetime.date(2022, 6, 9)\nprint((sec...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0068061
<|start|><|user|> Express 284 hours in days and hours.<|eot|> <|assistant|> ```python hours = 284 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # program output: 11 days and 20 hours That is 11 days and 20 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 284 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 284\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n# program output: 11 days and 20 hours\n\nThat is 11 days and 20 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "11 days and 20 hours", "printed": "11 days and 20 hours", "notation": null}
nlprog_det-setting-0068062
188 volunteers are split into 7 equal teams. How many are on each team, and how many are left over? The Python version: ```python total = 188 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result: 26 each, 6 left over 26 each, 6 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "26 each, 6 left over", "printed": "26 each, 6 left over", "notation": null}
nlprog_det-setting-0068063
From 2008 to 2026, how many years is that? Python does the arithmetic: ```python start_year = 2008 end_year = 2026 print(end_year - start_year) ``` The run gives: 18 That is 18 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068064
Fines run at $50 per day up to a maximum of $2,500. How much after 48 days? Python version: ```python per_day = 50 days = 48 cap = 2500 fine = min(per_day * days, cap) # 2400 print(fine) ``` Python prints 2400. The fine is $2,400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "2400", "printed": "2400", "notation": null}
nlprog_det-setting-0068065
67 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? Here is the program. ```python total = 67 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Result: 16 each, 3 left over The answer: 16 each, 3 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "16 each, 3 left over", "printed": "16 each, 3 left over", "notation": null}
nlprog_det-setting-0068066
<|start|><|system|> You can call tools. Available tools: [{"name": "python_exec", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A sett...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"python_exec\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
219
{"gold": "12000", "printed": "12000", "notation": null}
nlprog_det-setting-0068067
Someone works 30 hours at $27.51 per hour. What are the earnings? rate = 27.51 hours = 30 earnings = rate * hours # 825.3000000000001 print(f"{earnings:.2f}") # result: 825.30 That earns $825.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "825.30", "printed": "825.30", "notation": null}
nlprog_det-setting-0068068
<|start|><|user|> Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round(margin, 1)) ``` # console output: 1.4 ...
chat
[ { "role": "user", "content": "Revenue is $36,500 and costs are $36,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 36500\ncosts = 36000\nprofit = revenue - costs # 500\nmargin = profit / revenue * 100 # 1.3698630...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0068069
<|start|><|user|> Cyrus was born on July 2, 1954. How old is Cyrus on October 25, 2027?<|eot|> <|assistant|> The age is 73 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Cyrus was born on July 2, 1954. How old is Cyrus on October 25, 2027?" }, { "role": "assistant", "content": "The age is 73 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0068070
<|start|><|system|> You can call tools. Available tools: [{"name": "get_weather", "description": "Get the weather for a city.", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}, {"name": "python_exec", "description": "Executes a Python program and returns its output.",...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"get_weather\", \"description\": \"Get the weather for a city.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\"}}, \"required\": [\"city\"]}}, {\"name\": \"python_exec\", \"descriptio...
nlprog_det
setting
original
null
deterministic
[]
[]
293
{"gold": "1207.20", "printed": "1207.20", "notation": null}
nlprog_det-setting-0068071
At $0.62 per mile, what is the reimbursement for 628 miles? Python version: ```python miles = 628 rate = 0.62 reimbursement = miles * rate # 389.36 print(f"{reimbursement:.2f}") ``` Printed result — 389.36 Reza is owed $389.36.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "389.36", "printed": "389.36", "notation": null}
nlprog_det-setting-0068072
A lawyer's fee is 25% of a $40,000 recovery. How large is the fee? We can compute it in Python. ```python recovery = 40000 rate = 25 / 100 # 0.25 fee = recovery * rate # 10000.0 print(f"{fee:.2f}") ``` It prints 10000.00, as expected. The fee is $10,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "10000.00", "printed": "10000.00", "notation": null}
nlprog_det-setting-0068073
Printing costs 15 cents a page. What does it cost to print 44 copies of a 50-page handout? We can compute it in Python. pages = 50 copies = 44 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 330.0 print(f"{cost:.2f}") Executing it gives: 330.00 The job costs $330.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "330.00", "printed": "330.00", "notation": null}
nlprog_det-setting-0068074
A settlement of $1,200 is split equally among 3 parties. How much does each party receive? Programmatically: ```python settlement = 1200 parties = 3 share = settlement // parties # 400 print(share) ``` Execution prints 400, as expected. Each party receives $400.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "400", "printed": "400", "notation": null}
nlprog_det-setting-0068075
A $150 dinner bill gets a 20% tip, and 4 people share the cost equally. What is each person's share? Script: ```python bill = 150 tip_rate = 20 / 100 # 0.2 people = 4 each = bill * (1 + tip_rate) / people # 45.0 print(f"{each:.2f}") ``` # out: 45.00 Each person pays $45.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "45.00", "printed": "45.00", "notation": null}
nlprog_det-setting-0068076
What simple interest does $2,500 earn at 2% a year over 2 years? Here is the program. ```python principal = 2500 rate = 2 / 100 # 0.02 years = 2 interest = principal * rate * years # 100.0 print(f"{interest:.2f}") ``` Executing it gives 100.00. The interest is $100.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "100.00", "printed": "100.00", "notation": null}
nlprog_det-setting-0068077
<|start|><|user|> Buying 6 hard drives at $2 each, 6 batteries at $3 each, 6 flash drives at $28 each, 1 headsets at $26 each, someone hands over $250. What change comes back?<|eot|> <|assistant|> ```python items = [(6, 2), (6, 3), (6, 28), (1, 26)] total = sum(q * p for q, p in items) # 224 paid = 250 change = paid -...
chat
[ { "role": "user", "content": "Buying 6 hard drives at $2 each, 6 batteries at $3 each, 6 flash drives at $28 each, 1 headsets at $26 each, someone hands over $250. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(6, 2), (6, 3), (6, 28), (1, 26)]\ntotal = sum(q ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0068078
Xavier lends $1,000 at 8% simple interest per year for 3 years. How much interest is earned? ```python principal = 1000 rate = 8 / 100 # 0.08 years = 3 interest = principal * rate * years # 240.0 print(f"{interest:.2f}") ``` (Out: 240.00) It earns $240.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "240.00", "printed": "240.00", "notation": null}
nlprog_det-setting-0068079
<|start|><|user|> A 36-month warranty starts on October 3, 2019. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2019, 10, 3) months = 36 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoform...
chat
[ { "role": "user", "content": "A 36-month warranty starts on October 3, 2019. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2019, 10, 3)\nmonths = 36\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start....
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2022-10-03", "printed": "2022-10-03", "notation": null}
nlprog_det-setting-0068080
Convert 10 °C to Fahrenheit. The computation: ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` The script prints: 50 It equals 50 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0068081
Sales went from 2,000 to 2,200. What is the percent change? Program: ```python old = 2000 new = 2200 change = (new - old) / old * 100 # 10.0 print(round(change)) ``` Output: 10 The change is 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0068082
<|start|><|user|> Sales went from 800 to 400. What is the percent change?<|eot|> <|assistant|> ```python old = 800 new = 400 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` stdout = -50 It changed by -50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Sales went from 800 to 400. What is the percent change?" }, { "role": "assistant", "content": "```python\nold = 800\nnew = 400\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nstdout = -50\n\nIt changed by -50%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0068083
An invoice lists 3 sticky pads at $15 each, plus 5% sales tax. What is the invoice total? In Python: ```python quantity = 3 unit_price = 15 subtotal = quantity * unit_price # 45 total = subtotal * (1 + 5 / 100) # 47.25 print(f"{total:.2f}") ``` Executing it gives 47.25. The total with tax is $47.25.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "47.25", "printed": "47.25", "notation": null}
nlprog_det-setting-0068084
<|start|><|user|> How much sales tax is charged on a $776.59 purchase at 8%?<|eot|> <|assistant|> ```python price = 776.59 tax_rate = 8 / 100 # 0.08 tax = price * tax_rate # 62.1272 print(f"{tax:.2f}") ``` # printed: 62.13 The tax is $62.13.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $776.59 purchase at 8%?" }, { "role": "assistant", "content": "```python\nprice = 776.59\ntax_rate = 8 / 100 # 0.08\ntax = price * tax_rate # 62.1272\nprint(f\"{tax:.2f}\")\n```\n# printed: 62.13\n\nThe tax is $62.13." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "62.13", "printed": "62.13", "notation": null}
nlprog_det-setting-0068085
<|start|><|user|> At 2% a month (simple), what interest builds on $1,000 over 3 months?<|eot|> <|assistant|> ```python balance = 1000 monthly_rate = 2 / 100 # 0.02 months = 3 interest = balance * monthly_rate * months # 60.0 print(f"{interest:.2f}") ``` The run gives 60.00. $60.00 accrues.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 2% a month (simple), what interest builds on $1,000 over 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 1000\nmonthly_rate = 2 / 100 # 0.02\nmonths = 3\ninterest = balance * monthly_rate * months # 60.0\nprint(f\"{interest:.2f}\")\n```\nT...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "60.00", "printed": "60.00", "notation": null}
nlprog_det-setting-0068086
<|start|><|user|> Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?<|eot|> <|assistant|> ```python days = 4 meal_rate = 79 lodging_rate = 175 nights = days - 1 total = days * meal_rate + nights * lodging_rate print(total) ``` Run output — 841 The allowance is $841.<|eot|>...
chat
[ { "role": "user", "content": "Meals are $79 per day and lodging $175 per night. What is the allowance for 4 days and 3 nights?" }, { "role": "assistant", "content": "```python\ndays = 4\nmeal_rate = 79\nlodging_rate = 175\nnights = days - 1\ntotal = days * meal_rate + nights * lodging_rate\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "841", "printed": "841", "notation": null}
nlprog_det-setting-0068087
A $2,400 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? Let's compute it with Python. ```python principal = 2400 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 192.0 payment = (prin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "216.00", "printed": "216.00", "notation": null}
nlprog_det-setting-0068088
<|start|><|system|> You help with homework problems.<|eot|> <|user|> How many 1-foot square tiles cover a 19 ft by 3 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 19 width = 3 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 57 print(tiles) ``` # console output: 57 57 tiles are ...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "How many 1-foot square tiles cover a 19 ft by 3 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 19\nwidth = 3\ntile = 1\ntiles = math.ceil(l...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0068089
A recipe for 8 people uses 200 grams of flour. How many grams are needed for 3 people? In code: ```python grams = 200 serves = 8 needed_for = 3 scaled = grams * needed_for // serves # 75 print(scaled) ``` It outputs 75. 75 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0068090
A $24,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? The program: ```python grant = 24000 up_front = 0 installments = 12 each = (grant - up_front) / installments print(f"{each:.2f}") ``` (Result: 2000.00) $2,000.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0068091
<|start|><|user|> A kettle costs $90. It is 20% off. What is the sale price?<|eot|> <|assistant|> ```python price = 90 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` (Out: 72.00) It costs $72.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A kettle costs $90. It is 20% off. What is the sale price?" }, { "role": "assistant", "content": "```python\nprice = 90\ndiscount = 20 / 100 # 0.2\nsale_price = price * (1 - discount) # 72.0\nprint(f\"{sale_price:.2f}\")\n```\n(Out: 72.00)\n\nIt costs $72.00." }...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0068092
$1,000 is invested at 5% compounded yearly. What is it worth after 3 years? In code: principal = 1000 rate = 5 / 100 # 0.05 years = 3 value = principal * (1 + rate) ** years # 1157.6250000000002 print(f"{value:.2f}") It outputs 1157.63. It is worth $1,157.63.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "1157.63", "printed": "1157.63", "notation": null}
nlprog_det-setting-0068093
With 27 rows of 20 chairs and 6 empty chairs, how many chairs are taken? Let the code do the arithmetic: rows = 27 per_row = 20 empty = 6 seated = rows * per_row - empty # 534 print(seated) (Out: 534) 534 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "534", "printed": "534", "notation": null}
nlprog_det-setting-0068094
<|start|><|user|> 4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 4 # 13500.0 print(f"{per_client:.2f}") ``` Run it and i...
chat
[ { "role": "user", "content": "4 clients win $72,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 72000\nfee = award * 25 / 100 # 18000.0\nremaining = award - fee # 54000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "13500.00", "printed": "13500.00", "notation": null}
nlprog_det-setting-0068095
A pack of 20 lanyards sells for $360. What does each cost? Written as code: ```python total = 360 count = 20 per_item = total // count # 18 print(per_item) ``` Run output: 18 Each one costs $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0068096
One can of paint covers 250 square feet. How many cans are needed for 1368 square feet of wall? Python version: ```python import math area = 1368 coverage = 250 cans = math.ceil(area / coverage) # 6 print(cans) ``` Output — 6 Buy 6 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0068097
Mei lends $2,500 at 3% simple interest per year for 6 years. How much interest is earned? It earns $450.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "450.00", "printed": "450.00", "notation": null}
nlprog_det-setting-0068098
A recipe for 2 people uses 300 grams of oats. How many grams are needed for 10 people? Program: ```python grams = 300 serves = 2 needed_for = 10 scaled = grams * needed_for // serves print(scaled) ``` Result: 1500 Use 1500 g of oats.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "1500", "printed": "1500", "notation": null}
nlprog_det-setting-0068099
Attendance was 22 out of 25. Express it as a percent. Python code: ```python present = 22 total = 25 percent = present / total * 100 # 88.0 print(round(percent, 1)) ``` # output: 88.0 88.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "88.0", "printed": "88.0", "notation": null}
nlprog_det-setting-0068100
<|start|><|user|> A meeting starts at 4:00 PM and lasts 75 minutes. When does it end?<|eot|> <|assistant|> ```python start = 16 * 60 + 0 end = start + 75 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` Executing it gives 5:15 PM. The meeting finishes at 5:1...
chat
[ { "role": "user", "content": "A meeting starts at 4:00 PM and lasts 75 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 16 * 60 + 0\nend = start + 75\nhour, minute = divmod(end, 60)\nprint(f\"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}\")\...
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "5:15 PM", "printed": "5:15 PM", "notation": null}