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-0061385
Convert 25 °C to Fahrenheit. A short script: celsius = 25 fahrenheit = celsius * 9 / 5 + 32 # 77.0 print(round(fahrenheit)) Printed = 77 That is 77 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "77", "printed": "77", "notation": null}
nlprog_det-setting-0061386
A claim accrued on April 18, 2024. The limitations period is 2 years. On what date does it expire? The computation: ```python from datetime import date accrued = date(2024, 4, 18) # datetime.date(2024, 4, 18) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 4, 18) print(expires.is...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2026-04-18", "printed": "2026-04-18", "notation": null}
nlprog_det-setting-0061387
The rules require 1/3 of 31 members (round up) to be present. How many is that? We write it as a program: import math members = 31 quorum = math.ceil(members * 1 / 3) # 11 print(quorum) (Program output: 11) 11 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "11", "printed": "11", "notation": null}
nlprog_det-setting-0061388
<|start|><|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Execution prints 23. That is 23 °F.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nExecution prints 23.\n\nThat is 23 °F." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0061389
A measure needs at least 60% of 230 votes. How many votes is that, rounded up? Script: ```python import math voters = 230 needed = math.ceil(voters * 60 / 100) # 138 print(needed) ``` Result — 138 138 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "138", "printed": "138", "notation": null}
nlprog_det-setting-0061390
<|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|> revenue = 5000 costs = 4000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 20.0 print(round(margin, 1)) (Printed result: 20.0) The mar...
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": " revenue = 5000\n costs = 4000\n profit = revenue - costs # 1000\n margin = profit / revenue * 100 # 20.0\n ...
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0061391
<|start|><|user|> A 24-month warranty starts on January 4, 2023. On what date does it end?<|eot|> <|assistant|> The warranty ends on January 4, 2025.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 24-month warranty starts on January 4, 2023. On what date does it end?" }, { "role": "assistant", "content": "The warranty ends on January 4, 2025." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "2025-01-04", "printed": "2025-01-04", "notation": null}
nlprog_det-setting-0061392
A 50-mile drive at a steady 40 mph takes how many minutes? The trip takes 75 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0061393
A penalty of $250 a day accrues, capped at $1,000. What is owed after 59 days? One way, in code: ```python per_day = 250 days = 59 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` Printed: 1000 The fine is $1,000.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061394
<|start|><|system|> Keep answers short and correct.<|eot|> <|user|> A garage charges $2 an hour, never more than $24 a day. How much for 2 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 2 daily_max = 24 cost = min(rate * hours, daily_max) # 4 print(cost) ``` The code prints 4. The charge is $4.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Keep answers short and correct." }, { "role": "user", "content": "A garage charges $2 an hour, never more than $24 a day. How much for 2 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 2\ndaily_max = 24\ncost = min(rate * hou...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0061395
<|start|><|user|> A car travels 260 miles in 1 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 260 hours = 1 speed = distance / hours # 260.0 print(round(speed)) ``` On running, it outputs 260. The average speed is 260 mph.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 260 miles in 1 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 260\nhours = 1\nspeed = distance / hours # 260.0\nprint(round(speed))\n```\nOn running, it outputs 260.\n\nThe average spee...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0061396
<|start|><|user|> Ana's scores were 58, 94, 59 and 81. What is the average score?<|eot|> <|assistant|> ```python scores = [58, 94, 59, 81] average = sum(scores) // len(scores) # 73 print(average) ``` The program prints 73, as expected. The mean is 73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Ana's scores were 58, 94, 59 and 81. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [58, 94, 59, 81]\naverage = sum(scores) // len(scores) # 73\nprint(average)\n```\nThe program prints 73, as expected.\n\nThe mean is 73." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "73", "printed": "73", "notation": null}
nlprog_det-setting-0061397
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 2 hours at $200 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 2 rate = 200 left = retainer - hours * rate # 7100 print(left) ``` The program prints 7100. The remaining balance is $7,100.<|eot|> ...
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 2 hours at $200 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 2\nrate = 200\nleft = retainer - hours * rate # 7100\nprint(left)\n```\nThe p...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "7100", "printed": "7100", "notation": null}
nlprog_det-setting-0061398
Divide 202 items among 7 groups as evenly as possible with equal groups. How many per group, and how many remain? Python does the arithmetic: ```python total = 202 groups = 7 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` The run gives 28 each, 6 left over. The answ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "28 each, 6 left over", "printed": "28 each, 6 left over", "notation": null}
nlprog_det-setting-0061400
A measure needs at least 67% of 61 votes. How many votes is that, rounded up? A short script: ```python import math voters = 61 needed = math.ceil(voters * 67 / 100) print(needed) ``` The run gives 41, as expected. 41 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0061401
After an initial $3,000, the remainder of a $30,000 grant is paid in 3 equal parts. What is each part? Python makes this quick: ```python grant = 30000 up_front = 3000 installments = 3 each = (grant - up_front) / installments # 9000.0 print(f"{each:.2f}") ``` Interpreter output: 9000.00 Each installment is $9,000.00...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "9000.00", "printed": "9000.00", "notation": null}
nlprog_det-setting-0061402
The rules require 3/5 of 34 members (round up) to be present. How many is that? As Python: ```python import math members = 34 quorum = math.ceil(members * 3 / 5) # 21 print(quorum) ``` The code prints 21. That is 21 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0061404
Buying 5 calendars at $20 each, 6 headsets at $11 each, 4 cables at $8 each, someone hands over $200. What change comes back? Computing it: ```python items = [(5, 20), (6, 11), (4, 8)] total = sum(q * p for q, p in items) # 198 paid = 200 change = paid - total # 2 print(change) ``` # execution result: 2 $2 comes ba...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0061405
<|start|><|user|> Pack A has 12 items for $14.62. Pack B has 30 items for $15.17. Which has the lower price per item?<|eot|> <|assistant|> ```python pack_a = 14.62 / 12 # 1.2183333333333333 pack_b = 15.17 / 30 # 0.5056666666666667 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` Printed — B Pack B...
chat
[ { "role": "user", "content": "Pack A has 12 items for $14.62. Pack B has 30 items for $15.17. Which has the lower price per item?" }, { "role": "assistant", "content": "```python\npack_a = 14.62 / 12 # 1.2183333333333333\npack_b = 15.17 / 30 # 0.5056666666666667\ncheaper = \"A\" if pack_a < pa...
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0061406
How many of 54 votes make 75% (round up)? Here is the program. ```python import math voters = 54 needed = math.ceil(voters * 75 / 100) # 41 print(needed) ``` Run output: 41 41 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0061407
<|start|><|user|> A clerk's office charges $45 for each filing. Tariq submits 3 filings. What is the total fee?<|eot|> <|assistant|> The filings cost $135 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $45 for each filing. Tariq submits 3 filings. What is the total fee?" }, { "role": "assistant", "content": "The filings cost $135 in all." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "135", "printed": "135", "notation": null}
nlprog_det-setting-0061408
<|start|><|user|> How many whole days and leftover hours are in 49 hours?<|eot|> <|assistant|> ```python hours = 49 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Console: 2 days and 1 hours That is 2 days and 1 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many whole days and leftover hours are in 49 hours?" }, { "role": "assistant", "content": "```python\nhours = 49\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\nConsole:\n2 days and 1 hours\n\nThat is 2 days and 1 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "2 days and 1 hours", "printed": "2 days and 1 hours", "notation": null}
nlprog_det-setting-0061409
Convert 6,398 GBP to USD at 1 GBP = 1.12 USD. It converts to 7,165.76 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "7165.76", "printed": "7165.76", "notation": null}
nlprog_det-setting-0061410
A trial runs from March 26, 2024 to April 3, 2024, counting both days. How many calendar days is that? Here's the code. ```python from datetime import date first = date(2024, 3, 26) # datetime.date(2024, 3, 26) last = date(2024, 4, 3) # datetime.date(2024, 4, 3) days = (last - first).days + 1 # 9 print(days) ``` Ru...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0061411
An attorney bills 2.5 hours at $225 per hour. What is the bill? Translated to Python: hours = 2.5 rate = 225 bill = hours * rate # 562.5 print(f"{bill:.2f}") Output = 562.50 The bill is $562.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "562.50", "printed": "562.50", "notation": null}
nlprog_det-setting-0061412
Buying 2 notebooks at $27 each, 6 mugs at $17 each, someone hands over $200. What change comes back? The change is $44.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "44", "printed": "44", "notation": null}
nlprog_det-setting-0061413
How many 1-foot square tiles cover a 7 ft by 4 ft floor (round up)? The computation: import math length = 7 width = 4 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 28 print(tiles) Shell output — 28 28 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0061414
131 files go into boxes of 24. How many boxes does that take? Set it up in Python: ```python import math files = 131 per_box = 24 boxes = math.ceil(files / per_box) # 6 print(boxes) ``` The program prints: 6 6 boxes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0061415
<|start|><|system|> Give the answer first.<|eot|> <|user|> Filing fees are $25 per document. What do 18 filings cost?<|eot|> <|assistant|> ```python fee = 25 filings = 18 total = fee * filings # 450 print(total) ``` That prints: 450 The filings cost $450 in all.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "Filing fees are $25 per document. What do 18 filings cost?" }, { "role": "assistant", "content": "```python\nfee = 25\nfilings = 18\ntotal = fee * filings # 450\nprint(total)\n```\nThat prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "450", "printed": "450", "notation": null}
nlprog_det-setting-0061416
35 folders cost $3 apiece. With 6% tax added, what is the total? The invoice total is $111.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "111.30", "printed": "111.30", "notation": null}
nlprog_det-setting-0061417
Parking is $4 per hour with a daily maximum of $15. What do 8 hours cost? Script: ```python rate = 4 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` The code prints: 15 The charge is $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0061418
<|start|><|user|> Convert 1,962 EUR to USD at 1 EUR = 1.08 USD.<|eot|> <|assistant|> ```python amount = 1962 rate = 1.08 converted = amount * rate # 2118.96 print(f"{converted:.2f}") ``` (Printed result: 2118.96) It converts to 2,118.96 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 1,962 EUR to USD at 1 EUR = 1.08 USD." }, { "role": "assistant", "content": "```python\namount = 1962\nrate = 1.08\nconverted = amount * rate # 2118.96\nprint(f\"{converted:.2f}\")\n```\n(Printed result: 2118.96)\n\nIt converts to 2,118.96 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "2118.96", "printed": "2118.96", "notation": null}
nlprog_det-setting-0061419
<|start|><|user|> A customer buys 2 batteries at $27 each, 3 rulers at $15 each and pays with $100. How much change is due?<|eot|> <|assistant|> ```python items = [(2, 27), (3, 15)] total = sum(q * p for q, p in items) # 99 paid = 100 change = paid - total # 1 print(change) ``` The program prints 1, as expected. The...
chat
[ { "role": "user", "content": "A customer buys 2 batteries at $27 each, 3 rulers at $15 each and pays with $100. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(2, 27), (3, 15)]\ntotal = sum(q * p for q, p in items) # 99\npaid = 100\nchange = paid - total # 1...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "1", "printed": "1", "notation": null}
nlprog_det-setting-0061420
A 16 lb package ships at $8 base plus $2.00/lb. What is the charge? Computation in Python: ```python base = 8 per_pound = 2.0 weight = 16 cost = base + per_pound * weight # 40.0 print(f"{cost:.2f}") ``` This prints 40.00, as expected. Shipping costs $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0061421
One can of paint covers 250 square feet. How many cans are needed for 1254 square feet of wall? ```python import math area = 1254 coverage = 250 cans = math.ceil(area / coverage) # 6 print(cans) ``` Printed = 6 Buy 6 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0061422
<|start|><|user|> Find the mean of these test scores: 95, 69, 59, 57, 80, 100 and 100.<|eot|> <|assistant|> ```python scores = [95, 69, 59, 57, 80, 100, 100] average = sum(scores) // len(scores) # 80 print(average) ``` stdout: 80 The mean is 80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Find the mean of these test scores: 95, 69, 59, 57, 80, 100 and 100." }, { "role": "assistant", "content": "```python\nscores = [95, 69, 59, 57, 80, 100, 100]\naverage = sum(scores) // len(scores) # 80\nprint(average)\n```\nstdout: 80\n\nThe mean is 80." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "80", "printed": "80", "notation": null}
nlprog_det-setting-0061423
<|start|><|user|> How much sales tax is charged on a $639.18 purchase at 7%?<|eot|> <|assistant|> ```python price = 639.18 tax_rate = 7 / 100 tax = price * tax_rate print(f"{tax:.2f}") ``` The code prints 44.74. The tax is $44.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How much sales tax is charged on a $639.18 purchase at 7%?" }, { "role": "assistant", "content": "```python\nprice = 639.18\ntax_rate = 7 / 100\ntax = price * tax_rate\nprint(f\"{tax:.2f}\")\n```\nThe code prints 44.74.\n\nThe tax is $44.74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "44.74", "printed": "44.74", "notation": null}
nlprog_det-setting-0061424
Rent of $900 goes up 4%. What is the new rent? Written as code: ```python rent = 900 increase = 4 / 100 # 0.04 new_rent = rent * (1 + increase) # 936.0 print(f"{new_rent:.2f}") ``` # out: 936.00 The new rent is $936.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "936.00", "printed": "936.00", "notation": null}
nlprog_det-setting-0061425
A penalty of $25 a day accrues, capped at $1,000. What is owed after 43 days? Python, step by step: ```python per_day = 25 days = 43 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` The script prints 1000, as expected. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061426
<|start|><|system|> Tools you may use: {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "fetch_filing", "description": "Fetch an SE...
chat
[ { "role": "system", "content": "Tools you may use:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
291
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0061427
Each storage box holds 24 files. How many boxes are needed for 673 files? It takes 29 boxes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0061428
What commission does Nikhil make on $70,582 in sales at 8%? We can compute it in Python. ```python sales = 70582 rate = 8 / 100 # 0.08 commission = sales * rate # 5646.56 print(f"{commission:.2f}") ``` Run output: 5646.56 Nikhil earns $5,646.56.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "5646.56", "printed": "5646.56", "notation": null}
nlprog_det-setting-0061429
<|start|><|user|> Counting the first and last day, how many days are there from December 3, 2021 through December 12, 2021?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 12, 3) # datetime.date(2021, 12, 3) last = date(2021, 12, 12) # datetime.date(2021, 12, 12) days = (last - first).days...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from December 3, 2021 through December 12, 2021?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 12, 3) # datetime.date(2021, 12, 3)\nlast = date(2021, 12, 12) ...
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0061430
A hearing is set for June 10, 2018. What day of the week is that? As Python: ```python from datetime import date hearing = date(2018, 6, 10) # datetime.date(2018, 6, 10) print(hearing.strftime("%A")) ``` Out = Sunday It is a Sunday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "Sunday", "printed": "Sunday", "notation": null}
nlprog_det-setting-0061431
<|start|><|user|> Equal monthly payments repay $9,000 plus 10% simple yearly interest over 36 months. How large is a payment?<|eot|> <|assistant|> ```python principal = 9000 annual_rate = 10 / 100 # 0.1 months = 36 interest = principal * annual_rate * months / 12 # 2700.0 payment = (principal + interest) / months # ...
chat
[ { "role": "user", "content": "Equal monthly payments repay $9,000 plus 10% simple yearly interest over 36 months. How large is a payment?" }, { "role": "assistant", "content": "```python\nprincipal = 9000\nannual_rate = 10 / 100 # 0.1\nmonths = 36\ninterest = principal * annual_rate * months / ...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "325.00", "printed": "325.00", "notation": null}
nlprog_det-setting-0061432
<|start|><|user|> Attendance was 68 out of 100. Express it as a percent.<|eot|> <|assistant|> present = 68 total = 100 percent = present / total * 100 # 68.0 print(round(percent, 1)) Run result — 68.0 68.0% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 68 out of 100. Express it as a percent." }, { "role": "assistant", "content": " present = 68\n total = 100\n percent = present / total * 100 # 68.0\n print(round(percent, 1))\nRun result — 68.0\n\n68.0% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
69
{"gold": "68.0", "printed": "68.0", "notation": null}
nlprog_det-setting-0061433
<|start|><|user|> A client paid a $7,500 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?<|eot|> <|assistant|> ```python retainer = 7500 hours = 6 rate = 250 left = retainer - hours * rate # 6000 print(left) ``` On running, it outputs 6000. The remaining balance is $6,000.<|eo...
chat
[ { "role": "user", "content": "A client paid a $7,500 retainer. The firm has billed 6 hours at $250 per hour. How much of the retainer is left?" }, { "role": "assistant", "content": "```python\nretainer = 7500\nhours = 6\nrate = 250\nleft = retainer - hours * rate # 6000\nprint(left)\n```\nOn ru...
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "6000", "printed": "6000", "notation": null}
nlprog_det-setting-0061434
<|start|><|user|> At $0.58 per mile, what is the reimbursement for 567 miles?<|eot|> <|assistant|> miles = 567 rate = 0.58 reimbursement = miles * rate # 328.85999999999996 print(f"{reimbursement:.2f}") The interpreter prints 328.86. Joelle is owed $328.86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $0.58 per mile, what is the reimbursement for 567 miles?" }, { "role": "assistant", "content": " miles = 567\n rate = 0.58\n reimbursement = miles * rate # 328.85999999999996\n print(f\"{reimbursement:.2f}\")\nThe interpreter prints 328.86.\n\nJoelle...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "328.86", "printed": "328.86", "notation": null}
nlprog_det-setting-0061435
Attendance was 129 out of 200. Express it as a percent. One way, in code: ```python present = 129 total = 200 percent = present / total * 100 # 64.5 print(round(percent, 1)) ``` # stdout: 64.5 64.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "64.5", "printed": "64.5", "notation": null}
nlprog_det-setting-0061436
A lease runs for 12 months at $2,875 per month. How much rent is paid over the whole term? The rent over the term is $34,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "34500", "printed": "34500", "notation": null}
nlprog_det-setting-0061437
A 8 lb package ships at $5 base plus $0.75/lb. What is the charge? Let the code do the arithmetic: ```python base = 5 per_pound = 0.75 weight = 8 cost = base + per_pound * weight # 11.0 print(f"{cost:.2f}") ``` This prints 11.00. Shipping costs $11.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11.00", "printed": "11.00", "notation": null}
nlprog_det-setting-0061438
Pay is $20.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 43 hours? Let's compute it with Python. ```python rate = 20.0 hours = 43 regular = 40 * rate # 800.0 overtime = (hours - 40) * rate * 1.5 # 90.0 pay = regular + overtime # 890.0 print(f"{pay:.2f}") ``` Result: 890.00 Mei earns $...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "890.00", "printed": "890.00", "notation": null}
nlprog_det-setting-0061439
The rules require 2/3 of 32 members (round up) to be present. How many is that? Here is the program. ```python import math members = 32 quorum = math.ceil(members * 2 / 3) # 22 print(quorum) ``` Running it prints 22. 22 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0061440
<|start|><|system|> Keep explanations short.<|eot|> <|user|> Which is cheaper per unit: 6 for $7.86 (A) or 18 for $30.76 (B)?<|eot|> <|assistant|> ```python pack_a = 7.86 / 6 # 1.31 pack_b = 30.76 / 18 # 1.708888888888889 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` The program outputs: A Pack...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "Which is cheaper per unit: 6 for $7.86 (A) or 18 for $30.76 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 7.86 / 6 # 1.31\npack_b = 30.76 / 18 # 1.708888888888889\ncheaper =...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0061441
<|start|><|system|> Functions: [{"name": "calc", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}, {"name": "translate", "description": "Translate text int...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"calc\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"source\"]}}, {...
nlprog_det
setting
original
null
deterministic
[]
[]
382
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0061442
<|start|><|user|> What commission does Yusuf make on $54,750 in sales at 10%?<|eot|> <|assistant|> Yusuf earns $5,475.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Yusuf make on $54,750 in sales at 10%?" }, { "role": "assistant", "content": "Yusuf earns $5,475.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
45
{"gold": "5475.00", "printed": "5475.00", "notation": null}
nlprog_det-setting-0061443
Convert 23 km to meters. Computation in Python: ```python km = 23 meters = km * 1000 # 23000 print(round(meters)) ``` The code prints: 23000 That is 23,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "23000", "printed": "23000", "notation": null}
nlprog_det-setting-0061444
<|start|><|user|> Marek lends $20,000 at 8% simple interest per year for 5 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 20000 rate = 8 / 100 # 0.08 years = 5 interest = principal * rate * years # 8000.0 print(f"{interest:.2f}") ``` Running it prints: 8000.00 It earns $8,000.00.<|eot...
chat
[ { "role": "user", "content": "Marek lends $20,000 at 8% simple interest per year for 5 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 8 / 100 # 0.08\nyears = 5\ninterest = principal * rate * years # 8000.0\nprint(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0061445
What is 10 degrees Celsius in Fahrenheit? ```python celsius = 10 fahrenheit = celsius * 9 / 5 + 32 # 50.0 print(round(fahrenheit)) ``` The printout reads: 50 That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0061446
Find the mean of these test scores: 62, 61 and 84. Code: ```python scores = [62, 61, 84] average = sum(scores) // len(scores) # 69 print(average) ``` The program prints 69, as expected. The mean is 69.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0061447
<|start|><|user|> A meal costs $205.44. How much is a 22% tip?<|eot|> <|assistant|> ```python bill = 205.44 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 45.1968 print(f"{tip:.2f}") ``` Shell output — 45.20 Leave $45.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A meal costs $205.44. How much is a 22% tip?" }, { "role": "assistant", "content": "```python\nbill = 205.44\ntip_rate = 22 / 100 # 0.22\ntip = bill * tip_rate # 45.1968\nprint(f\"{tip:.2f}\")\n```\nShell output — 45.20\n\nLeave $45.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "45.20", "printed": "45.20", "notation": null}
nlprog_det-setting-0061448
<|start|><|user|> Starting with 455 pens and using 11 per day, how many remain after 17 days?<|eot|> <|assistant|> ```python stock = 455 per_day = 11 days = 17 left = stock - per_day * days # 268 print(left) ``` Output of the run — 268 268 pens are left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting with 455 pens and using 11 per day, how many remain after 17 days?" }, { "role": "assistant", "content": "```python\nstock = 455\nper_day = 11\ndays = 17\nleft = stock - per_day * days # 268\nprint(left)\n```\nOutput of the run — 268\n\n268 pens are left."...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "268", "printed": "268", "notation": null}
nlprog_det-setting-0061449
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A 14-day notice period begins on July 19, 2022. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2022, 7, 19) # datetime.date(2022, 7, 19) end = start + timedelta(days=14) # datetime.date(2022, 8...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A 14-day notice period begins on July 19, 2022. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nstart = date(2022, 7, 19) ...
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "2022-08-02", "printed": "2022-08-02", "notation": null}
nlprog_det-setting-0061450
Notice was given on April 24, 2022. The notice period is 30 days. When does it run out? Python code: ```python from datetime import date, timedelta start = date(2022, 4, 24) # datetime.date(2022, 4, 24) end = start + timedelta(days=30) # datetime.date(2022, 5, 24) print(end.isoformat()) ``` # printed result: 2022-05...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "2022-05-24", "printed": "2022-05-24", "notation": null}
nlprog_det-setting-0061451
A 9-day trip pays $64 a day for meals and $140 a night for lodging (8 nights). What is the total allowance? The Python version: ```python days = 9 meal_rate = 64 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1696 print(total) ``` (Printed result: 1696) The allowance is ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "1696", "printed": "1696", "notation": null}
nlprog_det-setting-0061452
<|start|><|system|> You are a helpful assistant.<|eot|> <|user|> Someone works 36 hours at $24.55 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 24.55 hours = 36 earnings = rate * hours # 883.8000000000001 print(f"{earnings:.2f}") ``` Executed, it shows 883.80. The pay is $883.80.<|eot|> <|end...
chat
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Someone works 36 hours at $24.55 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 24.55\nhours = 36\nearnings = rate * hours # 883.8000000000001\np...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "883.80", "printed": "883.80", "notation": null}
nlprog_det-setting-0061453
<|start|><|user|> Rent of $1,500 goes up 5%. What is the new rent?<|eot|> <|assistant|> ```python rent = 1500 increase = 5 / 100 # 0.05 new_rent = rent * (1 + increase) # 1575.0 print(f"{new_rent:.2f}") ``` Running it prints 1575.00. It rises to $1,575.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rent of $1,500 goes up 5%. What is the new rent?" }, { "role": "assistant", "content": "```python\nrent = 1500\nincrease = 5 / 100 # 0.05\nnew_rent = rent * (1 + increase) # 1575.0\nprint(f\"{new_rent:.2f}\")\n```\nRunning it prints 1575.00.\n\nIt rises to $1,575....
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "1575.00", "printed": "1575.00", "notation": null}
nlprog_det-setting-0061454
A 10 lb package ships at $5 base plus $1.50/lb. What is the charge? Python does the arithmetic: ```python base = 5 per_pound = 1.5 weight = 10 cost = base + per_pound * weight # 20.0 print(f"{cost:.2f}") ``` Execution result — 20.00 The charge is $20.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "20.00", "printed": "20.00", "notation": null}
nlprog_det-setting-0061455
A $180 dinner bill gets a 15% tip, and 5 people share the cost equally. What is each person's share? We can compute it in Python. ```python bill = 180 tip_rate = 15 / 100 # 0.15 people = 5 each = bill * (1 + tip_rate) / people # 41.39999999999999 print(f"{each:.2f}") ``` Output: 41.40 The share is $41.40 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "41.40", "printed": "41.40", "notation": null}
nlprog_det-setting-0061457
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python_exec", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}} {"name": ...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python_exec\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python ...
nlprog_det
setting
original
null
deterministic
[]
[]
363
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0061458
Monthly: $25. Annual: $270. What is saved per year by paying annually? The Python version: ```python monthly = 25 yearly = 270 savings = monthly * 12 - yearly # 30 print(savings) ``` The script prints 30. $30 is saved.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "30", "printed": "30", "notation": null}
nlprog_det-setting-0061459
A settlement of $18,000 is split equally among 5 parties. How much does each party receive? Python: ```python settlement = 18000 parties = 5 share = settlement // parties # 3600 print(share) ``` The run gives: 3600 Each share is $3,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "3600", "printed": "3600", "notation": null}
nlprog_det-setting-0061460
A $60,000 grant pays $2,000 up front and the rest in 4 equal installments. How large is each installment? ```python grant = 60000 up_front = 2000 installments = 4 each = (grant - up_front) / installments # 14500.0 print(f"{each:.2f}") ``` (Program output: 14500.00) Each installment is $14,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "14500.00", "printed": "14500.00", "notation": null}
nlprog_det-setting-0061462
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A garage charges $3 an hour, never more than $20 a day. How much for 9 hours?<|eot|> <|assistant|> rate = 3 hours = 9 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) What it prints — 20 Parking costs $20.<|eot|> ...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A garage charges $3 an hour, never more than $20 a day. How much for 9 hours?" }, { "role": "assistant", "content": " rate = 3\n hours = 9\n daily_max = 20\n cost = min(rate * ...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0061463
A pack of 6 calendars sells for $270. What does each cost? The Python version: ```python total = 270 count = 6 per_item = total // count # 45 print(per_item) ``` # program output: 45 Each one costs $45.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "45", "printed": "45", "notation": null}
nlprog_det-setting-0061464
Equipment costs $45,000, has a salvage value of $0, and a useful life of 10 years. What is the straight-line depreciation per year? $4,500.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
46
{"gold": "4500.00", "printed": "4500.00", "notation": null}
nlprog_det-setting-0061465
A backpack costs $40. It is 10% off. What is the sale price? ```python price = 40 discount = 10 / 100 sale_price = price * (1 - discount) print(f"{sale_price:.2f}") ``` (Console output: 36.00) It costs $36.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "36.00", "printed": "36.00", "notation": null}
nlprog_det-setting-0061466
<|start|><|system|> Available functions (JSON Schema): [{"name": "math_engine", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> Starting with ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"math_engine\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"req...
nlprog_det
setting
original
null
deterministic
[]
[]
217
{"gold": "1598", "printed": "1598", "notation": null}
nlprog_det-setting-0061467
<|start|><|user|> A garage charges $2 an hour, never more than $24 a day. How much for 6 hours?<|eot|> <|assistant|> ```python rate = 2 hours = 6 daily_max = 24 cost = min(rate * hours, daily_max) # 12 print(cost) ``` (Result: 12) The charge is $12.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $2 an hour, never more than $24 a day. How much for 6 hours?" }, { "role": "assistant", "content": "```python\nrate = 2\nhours = 6\ndaily_max = 24\ncost = min(rate * hours, daily_max) # 12\nprint(cost)\n```\n(Result: 12)\n\nThe charge is $12." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0061468
<|start|><|system|> Tool definitions: [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A penalty of $250 a day accrues, capped at $...
chat
[ { "role": "system", "content": "Tool definitions:\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]" },...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0061469
<|start|><|system|> Use a tool when a calculation is needed. Tools: {"name": "eval_python", "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"]}} {"n...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n{\"name\": \"eval_python\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \...
nlprog_det
setting
original
null
deterministic
[]
[]
327
{"gold": "17", "printed": "17", "notation": null}
nlprog_det-setting-0061470
A client paid a $5,000 retainer. The firm has billed 5 hours at $275 per hour. How much of the retainer is left? Program: ```python retainer = 5000 hours = 5 rate = 275 left = retainer - hours * rate # 3625 print(left) ``` Executing it gives: 3625 The remaining balance is $3,625.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "3625", "printed": "3625", "notation": null}
nlprog_det-setting-0061471
Someone works 20 hours at $29.09 per hour. What are the earnings? Computation in Python: ```python rate = 29.09 hours = 20 earnings = rate * hours # 581.8 print(f"{earnings:.2f}") ``` Run output: 581.80 The pay is $581.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "581.80", "printed": "581.80", "notation": null}
nlprog_det-setting-0061472
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> The landlord deducts $75, $85 and $85 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> $1,755 is returned.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "The landlord deducts $75, $85 and $85 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "$1,755 is returned." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "1755", "printed": "1755", "notation": null}
nlprog_det-setting-0061473
A settlement of $4,496 is split equally among 8 parties. How much does each party receive? ```python settlement = 4496 parties = 8 share = settlement // parties # 562 print(share) ``` Execution prints: 562 Each share is $562.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "562", "printed": "562", "notation": null}
nlprog_det-setting-0061474
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python sourc...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "14.77", "printed": "14.77", "notation": null}
nlprog_det-setting-0061476
Elena and Kaito share $3,816 in the ratio 3:5. How much does Elena get? A Python solution: ```python total = 3816 parts_a = 3 parts_b = 5 share_a = total * parts_a // (parts_a + parts_b) # 1431 print(share_a) ``` Shell output — 1431 Elena gets $1,431.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "1431", "printed": "1431", "notation": null}
nlprog_det-setting-0061477
<|start|><|system|> You help paralegals with routine tasks.<|eot|> <|user|> A 377-page report must be reviewed in 13 days. How many pages a day is that, evenly?<|eot|> <|assistant|> That is 29 pages per day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help paralegals with routine tasks." }, { "role": "user", "content": "A 377-page report must be reviewed in 13 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "That is 29 pages per day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
56
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0061478
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year? Computing it: ```python cost = 30000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 8000.0 print(f"{per_year:.2f}") ``` The program outputs: 8000.00 $8,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0061479
Divide 164 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? The answer: 54 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "54 each, 2 left over", "printed": "54 each, 2 left over", "notation": null}
nlprog_det-setting-0061480
Shipping costs $5 plus $2.50 per pound. What does a 34-pound parcel cost to ship? Python makes this quick: ```python base = 5 per_pound = 2.5 weight = 34 cost = base + per_pound * weight # 90.0 print(f"{cost:.2f}") ``` The run gives 90.00. The charge is $90.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "90.00", "printed": "90.00", "notation": null}
nlprog_det-setting-0061481
Yara was born on September 3, 1980. How old is Yara on February 5, 2022? ```python from datetime import date born = date(1980, 9, 3) # datetime.date(1980, 9, 3) on = date(2022, 2, 5) # datetime.date(2022, 2, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 41 print(age) ``` It prints 4...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0061482
104 of 200 members attended. What percent attended? A few lines of Python do it: ```python present = 104 total = 200 percent = present / total * 100 # 52.0 print(round(percent, 1)) ``` Output: 52.0 Attendance was 52.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "52.0", "printed": "52.0", "notation": null}
nlprog_det-setting-0061483
A $6,000 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? ```python principal = 6000 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 1440.0 payment = (principal + interest) / months #...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "206.67", "printed": "206.67", "notation": null}
nlprog_det-setting-0061485
Copies cost $10 plus $0.50 for each page beyond 10. How much for 68 pages? ```python pages = 68 base = 10 per_page = 0.5 free_pages = 10 cost = base + max(0, pages - free_pages) * per_page # 39.0 print(f"{cost:.2f}") ``` It prints: 39.00 The total is $39.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "39.00", "printed": "39.00", "notation": null}
nlprog_det-setting-0061486
An office budget of $25,000 has expenses of $3,901, $3,528, $3,768, $3,643. How much of the budget is left? A few lines of Python do it: ```python budget = 25000 expenses = [3901, 3528, 3768, 3643] left = budget - sum(expenses) # 10160 print(left) ``` Output: 10160 The remaining budget is $10,160.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "10160", "printed": "10160", "notation": null}
nlprog_det-setting-0061487
Omar was born on December 16, 1991. How old is Omar on May 14, 2021? A short script: ```python from datetime import date born = date(1991, 12, 16) # datetime.date(1991, 12, 16) on = date(2021, 5, 14) # datetime.date(2021, 5, 14) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 29 print(ag...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0061489
<|start|><|user|> A 18-month warranty starts on May 2, 2024. On what date does it end?<|eot|> <|assistant|> from datetime import date start = date(2024, 5, 2) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(en...
chat
[ { "role": "user", "content": "A 18-month warranty starts on May 2, 2024. On what date does it end?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2024, 5, 2)\n months = 18\n years, month_index = divmod(start.month - 1 + months, 12)\n end = date(st...
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "2025-11-02", "printed": "2025-11-02", "notation": null}
nlprog_det-setting-0061490
A pack of 12 lanyards sells for $96. What does each cost? As Python: total = 96 count = 12 per_item = total // count # 8 print(per_item) (Console output: 8) The unit price is $8.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0061491
A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments? Computing it: ```python monthly = 9 yearly = 84 savings = monthly * 12 - yearly # 24 print(savings) ``` Run it and it prints 24. The annual plan saves $24.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "24", "printed": "24", "notation": null}