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-0055818
Find the mean of these test scores: 72, 75 and 72. ```python scores = [72, 75, 72] average = sum(scores) // len(scores) # 73 print(average) ``` Program output: 73 The average score is 73.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0055819
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 45 days?<|eot|> <|assistant|> The fine is $1,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 45 days?" }, { "role": "assistant", "content": "The fine is $1,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0055821
<|start|><|user|> What is the total rent on a 12-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 12 total = monthly_rent * months # 10200 print(total) ``` Output of the run — 10200 In total, $10,200 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 12-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 12\ntotal = monthly_rent * months # 10200\nprint(total)\n```\nOutput of the run — 10200\n\nIn total, $10,200 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0055822
<|start|><|user|> How many weekdays (Monday to Friday) fall after October 26, 2019 up to and including November 1, 2019?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 10, 26) end = date(2019, 11, 1) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(d...
chat
[ { "role": "user", "content": "How many weekdays (Monday to Friday) fall after October 26, 2019 up to and including November 1, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2019, 10, 26)\nend = date(2019, 11, 1)\ncount = 0\nfor k in ra...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0055823
One can of paint covers 300 square feet. How many cans are needed for 1096 square feet of wall? Script: ```python import math area = 1096 coverage = 300 cans = math.ceil(area / coverage) # 4 print(cans) ``` That prints: 4 4 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0055824
<|start|><|user|> Express 113 hours in days and hours.<|eot|> <|assistant|> That is 4 days and 17 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 113 hours in days and hours." }, { "role": "assistant", "content": "That is 4 days and 17 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "4 days and 17 hours", "printed": "4 days and 17 hours", "notation": null}
nlprog_det-setting-0055825
<|start|><|user|> Copies cost $5 plus $0.25 for each page beyond 10. How much for 17 pages?<|eot|> <|assistant|> ```python pages = 17 base = 5 per_page = 0.25 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 6.75 print(f"{cost:.2f}") ``` Execution result — 6.75 The copy costs $6.75.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Copies cost $5 plus $0.25 for each page beyond 10. How much for 17 pages?" }, { "role": "assistant", "content": "```python\npages = 17\nbase = 5\nper_page = 0.25\nfree_pages = 10\ncost = base + max(0, pages - free_pages) * per_page # 6.75\nprint(f\"{cost:.2f}\")\n`...
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "6.75", "printed": "6.75", "notation": null}
nlprog_det-setting-0055826
12 of 25 members attended. What percent attended? Python: ```python present = 12 total = 25 percent = present / total * 100 # 48.0 print(round(percent, 1)) ``` The program outputs: 48.0 48.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "48.0", "printed": "48.0", "notation": null}
nlprog_det-setting-0055827
<|start|><|user|> Walls total 1361 sq ft and each can covers 350 sq ft. How many cans should be bought?<|eot|> <|assistant|> ```python import math area = 1361 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` When run, it prints 4, as expected. Buy 4 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Walls total 1361 sq ft and each can covers 350 sq ft. How many cans should be bought?" }, { "role": "assistant", "content": "```python\nimport math\narea = 1361\ncoverage = 350\ncans = math.ceil(area / coverage) # 4\nprint(cans)\n```\nWhen run, it prints 4, as expe...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0055828
<|start|><|user|> 300 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?<|eot|> <|assistant|> ```python total = 300 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` stdout — 75 each, 0 left over 75 each, 0 left ov...
chat
[ { "role": "user", "content": "300 volunteers are split into 4 equal teams. How many are on each team, and how many are left over?" }, { "role": "assistant", "content": "```python\ntotal = 300\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {remainder} left o...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "75 each, 0 left over", "printed": "75 each, 0 left over", "notation": null}
nlprog_det-setting-0055829
Zainab earns a 5% commission on $33,077 of sales. What is the commission? Python: ```python sales = 33077 rate = 5 / 100 commission = sales * rate print(f"{commission:.2f}") ``` Shell output: 1653.85 The commission is $1,653.85.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1653.85", "printed": "1653.85", "notation": null}
nlprog_det-setting-0055830
What percentage of $4,000 is $3,300? Translated to Python: ```python budget = 4000 spent = 3300 percent = spent / budget * 100 # 82.5 print(round(percent, 1)) ``` The program outputs 82.5. 82.5% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "82.5", "printed": "82.5", "notation": null}
nlprog_det-setting-0055831
<|start|><|system|> You are a patient tutor.<|eot|> <|user|> Someone born August 5, 1960 turns how old by March 18, 2025? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1960, 8, 5) # datetime.date(1960, 8, 5) on = date(2025, 3, 18) # datetime.date(2025, 3, 18) age = ...
chat
[ { "role": "system", "content": "You are a patient tutor." }, { "role": "user", "content": "Someone born August 5, 1960 turns how old by March 18, 2025? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1960, 8, 5) #...
nlprog_det
setting
original
null
deterministic
[]
[]
169
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0055832
<|start|><|user|> Papers were served by mail on February 23, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2027, 2, 23) # datetime.date(2027, 2, 23) response_days = 21 mail_days = 3 d...
chat
[ { "role": "user", "content": "Papers were served by mail on February 23, 2027. A response is due 21 days after service, plus 3 extra days for mailing. What is the due date?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2027, 2, 23) # datet...
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2027-03-19", "printed": "2027-03-19", "notation": null}
nlprog_det-setting-0055833
Meals are $69 per day and lodging $110 per night. What is the allowance for 9 days and 8 nights? We can compute it in Python. ```python days = 9 meal_rate = 69 lodging_rate = 110 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1501 print(total) ``` Execution result — 1501 That comes to $1,5...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "1501", "printed": "1501", "notation": null}
nlprog_det-setting-0055834
<|start|><|user|> What percentage of $4,000 is $3,800?<|eot|> <|assistant|> ```python budget = 4000 spent = 3800 percent = spent / budget * 100 # 95.0 print(round(percent, 1)) ``` (Printed result: 95.0) 95.0% has been spent.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $4,000 is $3,800?" }, { "role": "assistant", "content": "```python\nbudget = 4000\nspent = 3800\npercent = spent / budget * 100 # 95.0\nprint(round(percent, 1))\n```\n(Printed result: 95.0)\n\n95.0% has been spent." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "95.0", "printed": "95.0", "notation": null}
nlprog_det-setting-0055835
How many whole days and leftover hours are in 49 hours? Code: ```python hours = 49 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Out: 2 days and 1 hours 49 hours is 2 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "2 days and 1 hours", "printed": "2 days and 1 hours", "notation": null}
nlprog_det-setting-0055836
<|start|><|user|> A 8 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> It takes 64 tiles.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 8 × 8 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "It takes 64 tiles." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
47
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0055837
A trial runs from May 19, 2025 to June 9, 2025, counting both days. How many calendar days is that? ```python from datetime import date first = date(2025, 5, 19) # datetime.date(2025, 5, 19) last = date(2025, 6, 9) # datetime.date(2025, 6, 9) days = (last - first).days + 1 # 22 print(days) ``` The program prints 22...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0055838
An office budget of $20,000 has expenses of $3,141, $2,656. How much of the budget is left? Python version: ```python budget = 20000 expenses = [3141, 2656] left = budget - sum(expenses) # 14203 print(left) ``` Run output: 14203 The remaining budget is $14,203.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "14203", "printed": "14203", "notation": null}
nlprog_det-setting-0055840
<|start|><|system|> Functions: [{"name": "code_runner", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> After a 40% fee is taken from a $...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"code_runner\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0055841
<|start|><|system|> You are a data assistant.<|eot|> <|user|> A meal costs $106.51. How much is a 18% tip?<|eot|> <|assistant|> ```python bill = 106.51 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 19.1718 print(f"{tip:.2f}") ``` Executed, it shows: 19.17 The tip is $19.17.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a data assistant." }, { "role": "user", "content": "A meal costs $106.51. How much is a 18% tip?" }, { "role": "assistant", "content": "```python\nbill = 106.51\ntip_rate = 18 / 100 # 0.18\ntip = bill * tip_rate # 19.1718\nprint(f\"{tip:.2f}\...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "19.17", "printed": "19.17", "notation": null}
nlprog_det-setting-0055842
<|start|><|system|> Tools you may use: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "eval_python", "description": "Runs a short Python snippet and returns what ...
chat
[ { "role": "system", "content": "Tools you may use:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"eval_python\", \"desc...
nlprog_det
setting
original
null
deterministic
[]
[]
290
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055843
2 books come back 20 days late, at $0.20 a day each. What is the fine? The program: ```python per_day = 0.2 days_late = 20 books = 2 fine = per_day * days_late * books # 8.0 print(f"{fine:.2f}") ``` Python prints: 8.00 $8.00 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "8.00", "printed": "8.00", "notation": null}
nlprog_det-setting-0055844
<|start|><|system|> Functions: {"name": "lookup_statute", "description": "Look up the text of a U.S. Code section.", "parameters": {"type": "object", "properties": {"title": {"type": "integer"}, "section": {"type": "string"}}, "required": ["title", "section"]}} {"name": "define_word", "description": "Return a dictionar...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"lookup_statute\", \"description\": \"Look up the text of a U.S. Code section.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"integer\"}, \"section\": {\"type\": \"string\"}}, \"required\": [\"title\", \"section\"]}}...
nlprog_det
setting
original
null
deterministic
[]
[]
390
{"gold": "20 each, 1 left over", "printed": "20 each, 1 left over", "notation": null}
nlprog_det-setting-0055845
How much is a $69 daily meal allowance over 9 days? That comes to $621.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
21
{"gold": "621", "printed": "621", "notation": null}
nlprog_det-setting-0055846
<|start|><|user|> Starting from $5,000, the team spends $3,859, $2,104, $3,726, $3,784. What remains?<|eot|> <|assistant|> ```python budget = 5000 expenses = [3859, 2104, 3726, 3784] left = budget - sum(expenses) # -8473 print(left) ``` Output of the run: -8473 -$8,473 is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $5,000, the team spends $3,859, $2,104, $3,726, $3,784. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nexpenses = [3859, 2104, 3726, 3784]\nleft = budget - sum(expenses) # -8473\nprint(left)\n```\nOutput of the run: -84...
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "-8473", "printed": "-8473", "notation": null}
nlprog_det-setting-0055847
How many 2-foot square tiles cover a 14 ft by 6 ft floor (round up)? Computation in Python: ```python import math length = 14 width = 6 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 21 print(tiles) ``` # execution result: 21 It takes 21 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0055848
A 9 × 12 foot patio is tiled with 1 ft × 1 ft tiles. How many tiles, rounded up? Python: ```python import math length = 9 width = 12 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 108 print(tiles) ``` Running it prints: 108 108 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "108", "printed": "108", "notation": null}
nlprog_det-setting-0055849
A 33 lb package ships at $12 base plus $1.50/lb. What is the charge? Shipping costs $61.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "61.50", "printed": "61.50", "notation": null}
nlprog_det-setting-0055850
A 12-month warranty starts on August 3, 2020. On what date does it end? The program: ```python from datetime import date start = date(2020, 8, 3) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` The program outpu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "2021-08-03", "printed": "2021-08-03", "notation": null}
nlprog_det-setting-0055851
<|start|><|user|> A settlement of $525 is split equally among 3 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 525 parties = 3 share = settlement // parties # 175 print(share) ``` stdout: 175 Each share is $175.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $525 is split equally among 3 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 525\nparties = 3\nshare = settlement // parties # 175\nprint(share)\n```\nstdout:\n175\n\nEach share is $175." ...
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "175", "printed": "175", "notation": null}
nlprog_det-setting-0055852
Each storage box holds 25 files. How many boxes are needed for 200 files? The computation: import math files = 200 per_box = 25 boxes = math.ceil(files / per_box) # 8 print(boxes) The interpreter prints: 8 8 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0055853
<|start|><|user|> Count 30 days forward from March 28, 2018. What date is that?<|eot|> <|assistant|> The period ends on April 27, 2018.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Count 30 days forward from March 28, 2018. What date is that?" }, { "role": "assistant", "content": "The period ends on April 27, 2018." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "2018-04-27", "printed": "2018-04-27", "notation": null}
nlprog_det-setting-0055854
<|start|><|user|> Attendance was 114 out of 200. Express it as a percent.<|eot|> <|assistant|> ```python present = 114 total = 200 percent = present / total * 100 # 56.99999999999999 print(round(percent, 1)) ``` Running it prints: 57.0 57.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 114 out of 200. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 114\ntotal = 200\npercent = present / total * 100 # 56.99999999999999\nprint(round(percent, 1))\n```\nRunning it prints: 57.0\n\n57.0% attended." }...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "57.0", "printed": "57.0", "notation": null}
nlprog_det-setting-0055855
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> How many minutes pass from 10:55 AM to 12:25 PM on the same day?<|eot|> <|assistant|> ```python start = 10 * 60 + 55 # 655 end = 12 * 60 + 25 # 745 print(end - start) ``` # run result: 90 It is 90 minutes long.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "How many minutes pass from 10:55 AM to 12:25 PM on the same day?" }, { "role": "assistant", "content": "```python\nstart = 10 * 60 + 55 # 655\nend = 12 * 60 + 25 # 745\nprint(end - start)...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "90", "printed": "90", "notation": null}
nlprog_det-setting-0055856
A recipe for 2 people uses 100 grams of flour. How many grams are needed for 10 people? Set it up in Python: ```python grams = 100 serves = 2 needed_for = 10 scaled = grams * needed_for // serves # 500 print(scaled) ``` # stdout: 500 500 grams of flour are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0055857
<|start|><|system|> You are a study helper for students.<|eot|> <|user|> Pack A has 8 items for $9.86. Pack B has 15 items for $25.66. Which has the lower price per item?<|eot|> <|assistant|> pack_a = 9.86 / 8 # 1.2325 pack_b = 25.66 / 15 # 1.7106666666666668 cheaper = "A" if pack_a < pack_b else "B" # '...
chat
[ { "role": "system", "content": "You are a study helper for students." }, { "role": "user", "content": "Pack A has 8 items for $9.86. Pack B has 15 items for $25.66. Which has the lower price per item?" }, { "role": "assistant", "content": " pack_a = 9.86 / 8 # 1.2325\n pack_b ...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0055858
<|start|><|system|> You are a math tutor.<|eot|> <|user|> 160 copies of a 14-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 14 copies = 160 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 179.20000000000002 print(f"{cost:.2f}") ``` That prints: 179.20 ...
chat
[ { "role": "system", "content": "You are a math tutor." }, { "role": "user", "content": "160 copies of a 14-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 14\ncopies = 160\ncost_per_page = 0.08\ncost = pages * cop...
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "179.20", "printed": "179.20", "notation": null}
nlprog_det-setting-0055859
How many weekdays (Monday to Friday) fall after March 23, 2023 up to and including April 28, 2023? Python does the arithmetic: ```python from datetime import date, timedelta start = date(2023, 3, 23) end = date(2023, 4, 28) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "26", "printed": "26", "notation": null}
nlprog_det-setting-0055860
What is a 15% tip on a $47.86 bill? Here is the program. bill = 47.86 tip_rate = 15 / 100 # 0.15 tip = bill * tip_rate # 7.178999999999999 print(f"{tip:.2f}") Out: 7.18 The tip is $7.18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "7.18", "printed": "7.18", "notation": null}
nlprog_det-setting-0055861
The rules require 1/3 of 57 members (round up) to be present. How many is that? The computation: ```python import math members = 57 quorum = math.ceil(members * 1 / 3) # 19 print(quorum) ``` When run, it prints 19. 19 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0055862
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> A car travels 412 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 412 hours = 2 speed = distance / hours # 206.0 print(round(speed)) ``` (Result: 206) The average speed is 206 mp...
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "role": "user", "content": "A car travels 412 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 412\nhours = 2\nspeed = dista...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "206", "printed": "206", "notation": null}
nlprog_det-setting-0055863
Divide 141 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? The computation: ```python total = 141 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Printed result — 23 each, 3 left over The answer: 23 ea...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "23 each, 3 left over", "printed": "23 each, 3 left over", "notation": null}
nlprog_det-setting-0055864
Mateo and Jae share $2,740 in the ratio 2:3. How much does Mateo get? We can compute it in Python. ```python total = 2740 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1096 print(share_a) ``` (Run result: 1096) Mateo gets $1,096.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "1096", "printed": "1096", "notation": null}
nlprog_det-setting-0055865
A 210-mile drive at a steady 45 mph takes how many minutes? Python does the arithmetic: ```python distance = 210 speed = 45 minutes = distance / speed * 60 # 280.0 print(round(minutes)) ``` The code prints 280. 280 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "280", "printed": "280", "notation": null}
nlprog_det-setting-0055866
<|start|><|system|> You help people work with structured data.<|eot|> <|user|> Bruna's scores were 83, 57, 95, 57 and 98. What is the average score?<|eot|> <|assistant|> The average score is 78.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help people work with structured data." }, { "role": "user", "content": "Bruna's scores were 83, 57, 95, 57 and 98. What is the average score?" }, { "role": "assistant", "content": "The average score is 78." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0055867
<|start|><|user|> A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 8 thousand gallons?<|eot|> <|assistant|> ```python base = 12 rate = 4.75 used = 8 free = 3 bill = base + rate * max(0, used - free) # 35.75 print(f"{bill:.2f}") ``` stdout = 35.75 The bill is $35.75...
chat
[ { "role": "user", "content": "A water bill is $12 plus $4.75 per thousand gallons beyond the first 3 thousand. What is the bill for 8 thousand gallons?" }, { "role": "assistant", "content": "```python\nbase = 12\nrate = 4.75\nused = 8\nfree = 3\nbill = base + rate * max(0, used - free) # 35.75\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "35.75", "printed": "35.75", "notation": null}
nlprog_det-setting-0055868
Scale 450 g of pasta from 8 servings to 4 servings. Python code: ```python grams = 450 serves = 8 needed_for = 4 scaled = grams * needed_for // serves # 225 print(scaled) ``` Console: 225 Use 225 g of pasta.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "225", "printed": "225", "notation": null}
nlprog_det-setting-0055869
Copies cost $10 plus $0.50 for each page beyond 20. How much for 8 pages? Set it up in Python: ```python pages = 8 base = 10 per_page = 0.5 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 10.0 print(f"{cost:.2f}") ``` Run output: 10.00 The total is $10.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "10.00", "printed": "10.00", "notation": null}
nlprog_det-setting-0055870
A 18-month warranty starts on June 9, 2024. On what date does it end? Code: ```python from datetime import date start = date(2024, 6, 9) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Run result: 2025-12-09 It...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "2025-12-09", "printed": "2025-12-09", "notation": null}
nlprog_det-setting-0055871
<|start|><|user|> 2 claimants share a $18,000 settlement equally. What is each share?<|eot|> <|assistant|> ```python settlement = 18000 parties = 2 share = settlement // parties # 9000 print(share) ``` (Run result: 9000) Each share is $9,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "2 claimants share a $18,000 settlement equally. What is each share?" }, { "role": "assistant", "content": "```python\nsettlement = 18000\nparties = 2\nshare = settlement // parties # 9000\nprint(share)\n```\n(Run result: 9000)\n\nEach share is $9,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "9000", "printed": "9000", "notation": null}
nlprog_det-setting-0055872
<|start|><|user|> Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year?<|eot|> <|assistant|> ```python cost = 18000 salvage = 2000 years = 8 per_year = (cost - salvage) / years # 2000.0 print(f"{per_year:.2f}") ``` Run it and it prints: 2000.00 Depreciation is $2,000.00 per year.<|eot|...
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $18,000, salvage $2,000, 8 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 18000\nsalvage = 2000\nyears = 8\nper_year = (cost - salvage) / years # 2000.0\nprint(f\"{per_year:.2f}\")\n```\nRun it an...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0055873
<|start|><|system|> Functions: [{"name": "fetch_filing", "description": "Fetch an SEC filing by accession number.", "parameters": {"type": "object", "properties": {"accession": {"type": "string"}}, "required": ["accession"]}}, {"name": "run_python", "description": "Runs a short Python snippet and returns what it prints...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"fetch_filing\", \"description\": \"Fetch an SEC filing by accession number.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"accession\": {\"type\": \"string\"}}, \"required\": [\"accession\"]}}, {\"name\": \"run_python\", \"description\"...
nlprog_det
setting
original
null
deterministic
[]
[]
351
{"gold": "2022-02-27", "printed": "2022-02-27", "notation": null}
nlprog_det-setting-0055874
A $1,200 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Here's the code. ```python principal = 1200 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + inter...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "41.33", "printed": "41.33", "notation": null}
nlprog_det-setting-0055875
Copies cost $15 plus $0.10 for each page beyond 10. How much for 71 pages? In code: ```python pages = 71 base = 15 per_page = 0.1 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 21.1 print(f"{cost:.2f}") ``` On running, it outputs: 21.10 The copy costs $21.10.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "21.10", "printed": "21.10", "notation": null}
nlprog_det-setting-0055876
<|start|><|user|> A car travels 98 miles in 0.5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> The average speed is 196 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 98 miles in 0.5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "The average speed is 196 mph." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "196", "printed": "196", "notation": null}
nlprog_det-setting-0055877
A hearing is set for December 22, 2004. What day of the week is that? We can compute it in Python. ```python from datetime import date hearing = date(2004, 12, 22) # datetime.date(2004, 12, 22) print(hearing.strftime("%A")) ``` # console output: Wednesday December 22, 2004 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0055878
A party has 30 days to respond to a motion served on July 15, 2022, with 3 days added because service was by mail. When is the response due? Program: ```python from datetime import date, timedelta served = date(2022, 7, 15) # datetime.date(2022, 7, 15) response_days = 30 mail_days = 3 due = served + timedelta(days=re...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
172
{"gold": "2022-08-17", "printed": "2022-08-17", "notation": null}
nlprog_det-setting-0055879
<|start|><|user|> Count 120 days forward from November 12, 2025. What date is that?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2025, 11, 12) # datetime.date(2025, 11, 12) end = start + timedelta(days=120) # datetime.date(2026, 3, 12) print(end.isoformat()) ``` Execution result: 2...
chat
[ { "role": "user", "content": "Count 120 days forward from November 12, 2025. What date is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2025, 11, 12) # datetime.date(2025, 11, 12)\nend = start + timedelta(days=120) # datetime.date(20...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "2026-03-12", "printed": "2026-03-12", "notation": null}
nlprog_det-setting-0055880
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Each storage box holds 24 files. How many boxes are needed for 706 files?<|eot|> <|assistant|> ```python import math files = 706 per_box = 24 boxes = math.ceil(files / per_box) # 30 print(boxes) ``` The printout reads 30. 30 boxes are needed...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Each storage box holds 24 files. How many boxes are needed for 706 files?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 706\nper_box = 24\nboxes = math....
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0055881
<|start|><|user|> A trial runs from December 8, 2023 to December 27, 2023, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 12, 8) # datetime.date(2023, 12, 8) last = date(2023, 12, 27) # datetime.date(2023, 12, 27) days = (last - first).d...
chat
[ { "role": "user", "content": "A trial runs from December 8, 2023 to December 27, 2023, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 12, 8) # datetime.date(2023, 12, 8)\nlast = date(2023, 12, 2...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0055882
<|start|><|user|> How much sales tax is charged on a $807.82 purchase at 7%?<|eot|> <|assistant|> ```python price = 807.82 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 56.54740000000001 print(f"{tax:.2f}") ``` Output: 56.55 $56.55 in tax.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $807.82 purchase at 7%?" }, { "role": "assistant", "content": "```python\nprice = 807.82\ntax_rate = 7 / 100 # 0.07\ntax = price * tax_rate # 56.54740000000001\nprint(f\"{tax:.2f}\")\n```\nOutput: 56.55\n\n$56.55 in tax." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "56.55", "printed": "56.55", "notation": null}
nlprog_det-setting-0055883
With 25% off, what does a $180 kettle cost? Written as code: ```python price = 180 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 135.0 print(f"{sale_price:.2f}") ``` What it prints — 135.00 It costs $135.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "135.00", "printed": "135.00", "notation": null}
nlprog_det-setting-0055884
Starting from $20,000, the team spends $1,453, $3,057, $889, $3,482. What remains? Translated to Python: ```python budget = 20000 expenses = [1453, 3057, 889, 3482] left = budget - sum(expenses) # 11119 print(left) ``` The program prints: 11119 The remaining budget is $11,119.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "11119", "printed": "11119", "notation": null}
nlprog_det-setting-0055885
The building opened in 2001. How many years had passed by 2004? Here is the program. start_year = 2001 end_year = 2004 print(end_year - start_year) # console output: 3 3 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
59
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0055886
Rent of $2,200 goes up 2%. What is the new rent? Python does the arithmetic: ```python rent = 2200 increase = 2 / 100 # 0.02 new_rent = rent * (1 + increase) # 2244.0 print(f"{new_rent:.2f}") ``` When run, it prints 2244.00. The new rent is $2,244.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2244.00", "printed": "2244.00", "notation": null}
nlprog_det-setting-0055887
Water costs $12 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 21,000 gallons? Program: ```python base = 12 rate = 5.1 used = 21 free = 0 bill = base + rate * max(0, used - free) # 119.1 print(f"{bill:.2f}") ``` # run result: 119.10 $119.10 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "119.10", "printed": "119.10", "notation": null}
nlprog_det-setting-0055889
<|start|><|system|> Give the answer first.<|eot|> <|user|> With 15% off, what does a $40 bicycle helmet cost?<|eot|> <|assistant|> ```python price = 40 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 34.0 print(f"{sale_price:.2f}") ``` (Program output: 34.00) It costs $34.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "With 15% off, what does a $40 bicycle helmet cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 34.0\nprint(f\...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "34.00", "printed": "34.00", "notation": null}
nlprog_det-setting-0055890
<|start|><|system|> Tool definitions: [{"name": "python", "description": "Use for arithmetic and date math; returns stdout of the code.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> An office budget of $25,000 ...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"python\", \"description\": \"Use for arithmetic and date math; returns stdout of the code.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"...
nlprog_det
setting
original
null
deterministic
[]
[]
231
{"gold": "19993", "printed": "19993", "notation": null}
nlprog_det-setting-0055891
The paralegal logged 12 hours at a rate of $150. How much is billed? Python does the arithmetic: hours = 12 rate = 150 bill = hours * rate # 1800 print(f"{bill:.2f}") The run gives 1800.00. The bill is $1,800.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1800.00", "printed": "1800.00", "notation": null}
nlprog_det-setting-0055892
How many 1-foot square tiles cover a 18 ft by 8 ft floor (round up)? Script: ```python import math length = 18 width = 8 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 144 print(tiles) ``` (Out: 144) 144 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "144", "printed": "144", "notation": null}
nlprog_det-setting-0055893
Equipment costs $45,000, has a salvage value of $0, and a useful life of 8 years. What is the straight-line depreciation per year? ```python cost = 45000 salvage = 0 years = 8 per_year = (cost - salvage) / years # 5625.0 print(f"{per_year:.2f}") ``` # printed: 5625.00 $5,625.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "5625.00", "printed": "5625.00", "notation": null}
nlprog_det-setting-0055894
<|start|><|system|> Be concise.<|eot|> <|user|> Convert 5 h 15 min (the length of a meeting) to minutes.<|eot|> <|assistant|> That is 315 minutes.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be concise." }, { "role": "user", "content": "Convert 5 h 15 min (the length of a meeting) to minutes." }, { "role": "assistant", "content": "That is 315 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "315", "printed": "315", "notation": null}
nlprog_det-setting-0055896
Copies cost $15 plus $0.50 for each page beyond 0. How much for 70 pages? Translated to Python: ```python pages = 70 base = 15 per_page = 0.5 free_pages = 0 cost = base + max(0, pages - free_pages) * per_page print(f"{cost:.2f}") ``` Out = 50.00 The total is $50.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "50.00", "printed": "50.00", "notation": null}
nlprog_det-setting-0055897
After an initial $6,000, the remainder of a $30,000 grant is paid in 12 equal parts. What is each part? Here's the code. ```python grant = 30000 up_front = 6000 installments = 12 each = (grant - up_front) / installments # 2000.0 print(f"{each:.2f}") ``` Shell output — 2000.00 Each installment is $2,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "2000.00", "printed": "2000.00", "notation": null}
nlprog_det-setting-0055898
Attendance was 25 out of 40. Express it as a percent. The computation: ```python present = 25 total = 40 percent = present / total * 100 # 62.5 print(round(percent, 1)) ``` # program output: 62.5 62.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "62.5", "printed": "62.5", "notation": null}
nlprog_det-setting-0055899
A service costs $29 a month or $318 a year. How much does the yearly plan save over 12 monthly payments? ```python monthly = 29 yearly = 318 savings = monthly * 12 - yearly print(savings) ``` Python prints 30. $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0055900
<|start|><|user|> Attendance was 74 out of 80. Express it as a percent.<|eot|> <|assistant|> ```python present = 74 total = 80 percent = present / total * 100 # 92.5 print(round(percent, 1)) ``` The code prints 92.5. 92.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 74 out of 80. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 74\ntotal = 80\npercent = present / total * 100 # 92.5\nprint(round(percent, 1))\n```\nThe code prints 92.5.\n\n92.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "92.5", "printed": "92.5", "notation": null}
nlprog_det-setting-0055901
<|start|><|system|> You may call the tools below. {"name": "code_runner", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}} {"name": "define_word", "description": "Return a d...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"code_runner\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\...
nlprog_det
setting
original
null
deterministic
[]
[]
285
{"gold": "317", "printed": "317", "notation": null}
nlprog_det-setting-0055902
Monthly: $9. Annual: $60. What is saved per year by paying annually? Set it up in Python: ```python monthly = 9 yearly = 60 savings = monthly * 12 - yearly # 48 print(savings) ``` The run gives 48, as expected. $48 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0055903
<|start|><|user|> 6 friends split a $120 bill plus a 15% tip evenly. How much does each pay?<|eot|> <|assistant|> ```python bill = 120 tip_rate = 15 / 100 # 0.15 people = 6 each = bill * (1 + tip_rate) / people # 23.0 print(f"{each:.2f}") ``` Output: 23.00 The share is $23.00 each.<|eot|> <|end|>
chat
[ { "role": "user", "content": "6 friends split a $120 bill plus a 15% tip evenly. How much does each pay?" }, { "role": "assistant", "content": "```python\nbill = 120\ntip_rate = 15 / 100 # 0.15\npeople = 6\neach = bill * (1 + tip_rate) / people # 23.0\nprint(f\"{each:.2f}\")\n```\nOutput:\n23....
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "23.00", "printed": "23.00", "notation": null}
nlprog_det-setting-0055904
<|start|><|user|> Fixed costs are $6,000. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 40 variable = 35 units = math.ceil(fixed / (price - variable)) # 1200 print(units) ``` Running it prints 1200. Break-even ...
chat
[ { "role": "user", "content": "Fixed costs are $6,000. Each unit sells for $40 and costs $35 to make. How many units must be sold to break even?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 40\nvariable = 35\nunits = math.ceil(fixed / (price - variable)) #...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0055905
How many units at $20 each (variable cost $10) cover $1,200 of fixed costs? Python makes this quick: ```python import math fixed = 1200 price = 20 variable = 10 units = math.ceil(fixed / (price - variable)) # 120 print(units) ``` (Printed result: 120) 120 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "120", "printed": "120", "notation": null}
nlprog_det-setting-0055906
Yoko buys 7 boxes of 25 ink cartridges each and gives away 9 ink cartridges. How many ink cartridges are left? A Python solution: boxes = 7 per_box = 25 given_away = 9 left = boxes * per_box - given_away # 166 print(left) Printed result — 166 That leaves 166 ink cartridges.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "166", "printed": "166", "notation": null}
nlprog_det-setting-0055907
Rent of $1,250 goes up 3%. What is the new rent? In Python: ```python rent = 1250 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 1287.5 print(f"{new_rent:.2f}") ``` Printed result — 1287.50 It rises to $1,287.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1287.50", "printed": "1287.50", "notation": null}
nlprog_det-setting-0055908
Convert 15 °C to Fahrenheit. Program: ```python celsius = 15 fahrenheit = celsius * 9 / 5 + 32 # 59.0 print(round(fahrenheit)) ``` When run, it prints 59, as expected. It equals 59 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "59", "printed": "59", "notation": null}
nlprog_det-setting-0055909
4 walks at 350 calories each burn how many calories in total? 1400 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0055910
<|start|><|system|> Double-check numbers before answering.<|eot|> <|user|> What is the total rent on a 18-month lease at $1,200 a month?<|eot|> <|assistant|> ```python monthly_rent = 1200 months = 18 total = monthly_rent * months # 21600 print(total) ``` Output = 21600 In total, $21,600 is paid.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Double-check numbers before answering." }, { "role": "user", "content": "What is the total rent on a 18-month lease at $1,200 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 1200\nmonths = 18\ntotal = monthly_rent * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0055911
92 copies of a 6-page packet are printed at $0.15 per page. What is the cost? Computation in Python: pages = 6 copies = 92 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 82.8 print(f"{cost:.2f}") Interpreter output: 82.80 Printing costs $82.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "82.80", "printed": "82.80", "notation": null}
nlprog_det-setting-0055912
<|start|><|user|> A car travels 440 miles in 5 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 440 hours = 5 speed = distance / hours # 88.0 print(round(speed)) ``` The run gives 88, as expected. The average speed is 88 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 440 miles in 5 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 440\nhours = 5\nspeed = distance / hours # 88.0\nprint(round(speed))\n```\nThe run gives 88, as expected.\n\nThe average sp...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "88", "printed": "88", "notation": null}
nlprog_det-setting-0055913
From 1998 to 2004, how many years is that? The program: ```python start_year = 1998 end_year = 2004 print(end_year - start_year) ``` The printout reads 6. That is 6 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
67
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0055914
<|start|><|user|> Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?<|eot|> <|assistant|> ```python revenue = 5000 costs = 4000 profit = revenue - costs margin = profit / revenue * 100 print(round(margin, 1)) ``` The interpreter prints 20.0. The margin is 20.0%.<|e...
chat
[ { "role": "user", "content": "Revenue is $5,000 and costs are $4,000. What is the profit margin as a percent of revenue (one decimal)?" }, { "role": "assistant", "content": "```python\nrevenue = 5000\ncosts = 4000\nprofit = revenue - costs\nmargin = profit / revenue * 100\nprint(round(margin, 1)...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0055915
Monthly: $19. Annual: $204. What is saved per year by paying annually? Here is a short program for it. ```python monthly = 19 yearly = 204 savings = monthly * 12 - yearly print(savings) ``` That prints 24. $24 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0055916
Buying 6 headsets at $8 each, 1 notebooks at $19 each, 2 keyboards at $9 each, 2 folders at $7 each, someone hands over $100. What change comes back? Python makes this quick: ```python items = [(6, 8), (1, 19), (2, 9), (2, 7)] total = sum(q * p for q, p in items) # 99 paid = 100 change = paid - total # 1 print(chang...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0055917
Find the mean of these test scores: 56, 71 and 95. In code: ```python scores = [56, 71, 95] average = sum(scores) // len(scores) # 74 print(average) ``` Run it and it prints 74. The mean is 74.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "74", "printed": "74", "notation": null}
nlprog_det-setting-0055918
A customer buys 1 scissors at $24 each, 3 envelopes at $16 each and pays with $100. How much change is due? Here's the code. ```python items = [(1, 24), (3, 16)] total = sum(q * p for q, p in items) # 72 paid = 100 change = paid - total # 28 print(change) ``` Console output: 28 The change is $28.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0055919
<|start|><|user|> Counting the first and last day, how many days are there from August 14, 2018 through August 18, 2018?<|eot|> <|assistant|> ```python from datetime import date first = date(2018, 8, 14) # datetime.date(2018, 8, 14) last = date(2018, 8, 18) # datetime.date(2018, 8, 18) days = (last - first).days + 1 ...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from August 14, 2018 through August 18, 2018?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2018, 8, 14) # datetime.date(2018, 8, 14)\nlast = date(2018, 8, 18) # d...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0055920
<|start|><|user|> Cyrus buys 6 boxes of 25 clipboards each and gives away 15 clipboards. How many clipboards are left?<|eot|> <|assistant|> ```python boxes = 6 per_box = 25 given_away = 15 left = boxes * per_box - given_away # 135 print(left) ``` Printed: 135 That leaves 135 clipboards.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Cyrus buys 6 boxes of 25 clipboards each and gives away 15 clipboards. How many clipboards are left?" }, { "role": "assistant", "content": "```python\nboxes = 6\nper_box = 25\ngiven_away = 15\nleft = boxes * per_box - given_away # 135\nprint(left)\n```\nPrinted:\n1...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0055921
Rent of $1,500 goes up 6%. What is the new rent? It rises to $1,590.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1590.00", "printed": "1590.00", "notation": null}