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-0059258
<|start|><|user|> A board has 43 members. A majority is more than half. How many votes make a majority?<|eot|> <|assistant|> ```python members = 43 majority = members // 2 + 1 print(majority) ``` The script prints 22. 22 members are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A board has 43 members. A majority is more than half. How many votes make a majority?" }, { "role": "assistant", "content": "```python\nmembers = 43\nmajority = members // 2 + 1\nprint(majority)\n```\nThe script prints 22.\n\n22 members are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0059259
Convert 1,459 USD to CAD at 1 USD = 1.31 CAD. Written as code: ```python amount = 1459 rate = 1.31 converted = amount * rate # 1911.2900000000002 print(f"{converted:.2f}") ``` The run gives 1911.29. It converts to 1,911.29 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1911.29", "printed": "1911.29", "notation": null}
nlprog_det-setting-0059260
<|start|><|user|> A customer buys 5 tape rolls at $27 each, 4 hard drives at $3 each and pays with $150. How much change is due?<|eot|> <|assistant|> ```python items = [(5, 27), (4, 3)] total = sum(q * p for q, p in items) # 147 paid = 150 change = paid - total # 3 print(change) ``` The script prints: 3 The change i...
chat
[ { "role": "user", "content": "A customer buys 5 tape rolls at $27 each, 4 hard drives at $3 each and pays with $150. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(5, 27), (4, 3)]\ntotal = sum(q * p for q, p in items) # 147\npaid = 150\nchange = paid - total...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0059261
What does $1,000 grow to in 4 years at 2% annual compounding? The program: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 4 value = principal * (1 + rate) ** years # 1082.43216 print(f"{value:.2f}") ``` The code prints 1082.43. It is worth $1,082.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1082.43", "printed": "1082.43", "notation": null}
nlprog_det-setting-0059262
Monthly rent is $1,500. A tenant moves in with 23 days left in a 31-day month. What is the prorated rent? Set it up in Python: ```python rent = 1500 days_in_month = 31 days_occupied = 23 prorated = rent * days_occupied / days_in_month # 1112.9032258064517 print(f"{prorated:.2f}") ``` That prints 1112.90. The prorate...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "1112.90", "printed": "1112.90", "notation": null}
nlprog_det-setting-0059263
An invoice lists 37 folders at $4 each, plus 8% sales tax. What is the invoice total? The invoice total is $159.84.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "159.84", "printed": "159.84", "notation": null}
nlprog_det-setting-0059264
<|start|><|user|> The building opened in 1995. How many years had passed by 2022?<|eot|> <|assistant|> That is 27 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The building opened in 1995. How many years had passed by 2022?" }, { "role": "assistant", "content": "That is 27 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0059265
How many weekdays (Monday to Friday) fall after February 16, 2020 up to and including February 21, 2020? ```python from datetime import date, timedelta start = date(2020, 2, 16) end = date(2020, 2, 21) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: count ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0059266
How much sales tax is charged on a $729.78 purchase at 4%? Computing it: ```python price = 729.78 tax_rate = 4 / 100 # 0.04 tax = price * tax_rate # 29.1912 print(f"{tax:.2f}") ``` Run result: 29.19 $29.19 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "29.19", "printed": "29.19", "notation": null}
nlprog_det-setting-0059267
74 of 100 members attended. What percent attended? A short script: ```python present = 74 total = 100 percent = present / total * 100 # 74.0 print(round(percent, 1)) ``` When run, it prints 74.0, as expected. 74.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "74.0", "printed": "74.0", "notation": null}
nlprog_det-setting-0059268
8 claimants share a $520 settlement equally. What is each share? In Python: settlement = 520 parties = 8 share = settlement // parties # 65 print(share) It prints 65. Each party receives $65.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0059269
<|start|><|user|> Beatriz buys 6 boxes of 24 envelopes each and gives away 5 envelopes. How many envelopes are left?<|eot|> <|assistant|> ```python boxes = 6 per_box = 24 given_away = 5 left = boxes * per_box - given_away # 139 print(left) ``` Run output — 139 That leaves 139 envelopes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Beatriz buys 6 boxes of 24 envelopes each and gives away 5 envelopes. How many envelopes are left?" }, { "role": "assistant", "content": "```python\nboxes = 6\nper_box = 24\ngiven_away = 5\nleft = boxes * per_box - given_away # 139\nprint(left)\n```\nRun output — 1...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "139", "printed": "139", "notation": null}
nlprog_det-setting-0059270
A trial runs from June 19, 2026 to June 25, 2026, counting both days. How many calendar days is that? Set it up in Python: ```python from datetime import date first = date(2026, 6, 19) # datetime.date(2026, 6, 19) last = date(2026, 6, 25) # datetime.date(2026, 6, 25) days = (last - first).days + 1 # 7 print(days) `...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "7", "printed": "7", "notation": null}
nlprog_det-setting-0059272
With 10% off, what does a $180 jacket cost? Python code: ```python price = 180 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 162.0 print(f"{sale_price:.2f}") ``` # stdout: 162.00 The sale price is $162.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "162.00", "printed": "162.00", "notation": null}
nlprog_det-setting-0059273
What percentage of $10,000 is $400? Computation in Python: ```python budget = 10000 spent = 400 percent = spent / budget * 100 # 4.0 print(round(percent, 1)) ``` The interpreter prints 4.0. That is 4.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "4.0", "printed": "4.0", "notation": null}
nlprog_det-setting-0059274
From 2020 to 2059, how many years is that? 39 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
18
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0059275
<|start|><|user|> A hearing is set for October 6, 2022. What day of the week is that?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2022, 10, 6) print(hearing.strftime("%A")) ``` When run, it prints Thursday. October 6, 2022 is a Thursday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A hearing is set for October 6, 2022. What day of the week is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2022, 10, 6)\nprint(hearing.strftime(\"%A\"))\n```\nWhen run, it prints Thursday.\n\nOctober 6, 2022 is a ...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "Thursday", "printed": "Thursday", "notation": null}
nlprog_det-setting-0059276
A 18-month warranty starts on February 28, 2027. On what date does it end? Python code: ```python from datetime import date start = date(2027, 2, 28) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` It outputs: 2...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2028-08-28", "printed": "2028-08-28", "notation": null}
nlprog_det-setting-0059277
<|start|><|user|> An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 5 months?<|eot|> <|assistant|> balance = 4000 monthly_rate = 2 / 100 # 0.02 months = 5 interest = balance * monthly_rate * months # 400.0 print(f"{interest:.2f}") (Program output: 400.0...
chat
[ { "role": "user", "content": "An unpaid balance of $4,000 accrues 2% simple interest per month. How much interest accrues in 5 months?" }, { "role": "assistant", "content": " balance = 4000\n monthly_rate = 2 / 100 # 0.02\n months = 5\n interest = balance * monthly_rate * months # ...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "400.00", "printed": "400.00", "notation": null}
nlprog_det-setting-0059278
What average speed covers 356 miles in 4 hours? Computing it: distance = 356 hours = 4 speed = distance / hours # 89.0 print(round(speed)) The run gives 89. The average speed is 89 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "89", "printed": "89", "notation": null}
nlprog_det-setting-0059279
Monthly: $25. Annual: $282. What is saved per year by paying annually? Script: ```python monthly = 25 yearly = 282 savings = monthly * 12 - yearly # 18 print(savings) ``` Executed, it shows 18. The annual plan saves $18.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0059280
Divide 119 items among 3 groups as evenly as possible with equal groups. How many per group, and how many remain? ```python total = 119 groups = 3 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` It prints 39 each, 2 left over. The answer: 39 each, 2 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "39 each, 2 left over", "printed": "39 each, 2 left over", "notation": null}
nlprog_det-setting-0059281
A lease runs for 12 months at $850 per month. How much rent is paid over the whole term? The Python version: ```python monthly_rent = 850 months = 12 total = monthly_rent * months # 10200 print(total) ``` On running, it outputs 10200. In total, $10,200 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "10200", "printed": "10200", "notation": null}
nlprog_det-setting-0059283
<|start|><|user|> At $17.23 an hour, what does 38 hours of work pay?<|eot|> <|assistant|> rate = 17.23 hours = 38 earnings = rate * hours # 654.74 print(f"{earnings:.2f}") The script prints 654.74, as expected. The pay is $654.74.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $17.23 an hour, what does 38 hours of work pay?" }, { "role": "assistant", "content": " rate = 17.23\n hours = 38\n earnings = rate * hours # 654.74\n print(f\"{earnings:.2f}\")\nThe script prints 654.74, as expected.\n\nThe pay is $654.74." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "654.74", "printed": "654.74", "notation": null}
nlprog_det-setting-0059284
<|start|><|user|> What commission does Jonas make on $67,179 in sales at 2%?<|eot|> <|assistant|> The commission is $1,343.58.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Jonas make on $67,179 in sales at 2%?" }, { "role": "assistant", "content": "The commission is $1,343.58." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "1343.58", "printed": "1343.58", "notation": null}
nlprog_det-setting-0059285
Water costs $20 a month plus $4.75 for each 1,000 gallons over 2,000. What is owed for 12,000 gallons? A few lines of Python do it: ```python base = 20 rate = 4.75 used = 12 free = 2 bill = base + rate * max(0, used - free) # 67.5 print(f"{bill:.2f}") ``` The printout reads 67.50. The bill is $67.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "67.50", "printed": "67.50", "notation": null}
nlprog_det-setting-0059286
<|start|><|user|> Convert 20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` (Execution result: 68) It equals 68 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 20 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = 20\nfahrenheit = celsius * 9 / 5 + 32 # 68.0\nprint(round(fahrenheit))\n```\n(Execution result: 68)\n\nIt equals 68 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0059288
At an exchange rate of 1.08 CAD per USD, how many CAD is 7,984 USD? We can compute it in Python. amount = 7984 rate = 1.08 converted = amount * rate # 8622.720000000001 print(f"{converted:.2f}") This prints: 8622.72 That is 8,622.72 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "8622.72", "printed": "8622.72", "notation": null}
nlprog_det-setting-0059289
How many whole days and leftover hours are in 37 hours? The Python version: ```python hours = 37 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` Output: 1 days and 13 hours That is 1 days and 13 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "1 days and 13 hours", "printed": "1 days and 13 hours", "notation": null}
nlprog_det-setting-0059290
Which is cheaper per unit: 12 for $4.16 (A) or 30 for $6.19 (B)? One way, in code: ```python pack_a = 4.16 / 12 # 0.3466666666666667 pack_b = 6.19 / 30 # 0.20633333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` The program outputs: B B has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0059291
Eamon earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 49-hour week? The weekly pay is $856.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "856.00", "printed": "856.00", "notation": null}
nlprog_det-setting-0059292
At 40 miles per hour, how many minutes does a 130-mile trip take? ```python distance = 130 speed = 40 minutes = distance / speed * 60 # 195.0 print(round(minutes)) ``` Printed result: 195 195 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
78
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0059293
What average speed covers 476 miles in 2 hours? Set it up in Python: ```python distance = 476 hours = 2 speed = distance / hours # 238.0 print(round(speed)) ``` Console output — 238 The average speed is 238 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "238", "printed": "238", "notation": null}
nlprog_det-setting-0059294
<|start|><|user|> Convert 4,280 EUR to USD at 1 EUR = 0.74 USD.<|eot|> <|assistant|> ```python amount = 4280 rate = 0.74 converted = amount * rate # 3167.2 print(f"{converted:.2f}") ``` The printout reads: 3167.20 It converts to 3,167.20 USD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert 4,280 EUR to USD at 1 EUR = 0.74 USD." }, { "role": "assistant", "content": "```python\namount = 4280\nrate = 0.74\nconverted = amount * rate # 3167.2\nprint(f\"{converted:.2f}\")\n```\nThe printout reads: 3167.20\n\nIt converts to 3,167.20 USD." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "3167.20", "printed": "3167.20", "notation": null}
nlprog_det-setting-0059295
Express 247 hours in days and hours. A Python solution: ```python hours = 247 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It outputs 10 days and 7 hours. That is 10 days and 7 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "10 days and 7 hours", "printed": "10 days and 7 hours", "notation": null}
nlprog_det-setting-0059296
<|start|><|user|> A shift runs from 7:28 AM to 2:25 PM. How long is it in minutes?<|eot|> <|assistant|> It is 417 minutes long.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A shift runs from 7:28 AM to 2:25 PM. How long is it in minutes?" }, { "role": "assistant", "content": "It is 417 minutes long." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "417", "printed": "417", "notation": null}
nlprog_det-setting-0059297
<|start|><|system|> You may call the tools below. {"name": "eval_python", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|user|> A count moves from 800 to...
chat
[ { "role": "system", "content": "You may call the tools below.\n{\"name\": \"eval_python\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\":...
nlprog_det
setting
original
null
deterministic
[]
[]
216
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0059298
<|start|><|user|> Express 359 hours in days and hours.<|eot|> <|assistant|> 359 hours is 14 days and 23 hours.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Express 359 hours in days and hours." }, { "role": "assistant", "content": "359 hours is 14 days and 23 hours." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "14 days and 23 hours", "printed": "14 days and 23 hours", "notation": null}
nlprog_det-setting-0059299
<|start|><|system|> Give the answer first.<|eot|> <|user|> A measure needs at least 60% of 39 votes. How many votes is that, rounded up?<|eot|> <|assistant|> ```python import math voters = 39 needed = math.ceil(voters * 60 / 100) # 24 print(needed) ``` The script prints 24, as expected. 24 votes are needed.<|eot|> <|...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A measure needs at least 60% of 39 votes. How many votes is that, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nvoters = 39\nneeded = math.ceil(voters * 60 / 100) # ...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0059300
<|start|><|user|> Someone works 20 hours at $24.96 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 24.96 hours = 20 earnings = rate * hours # 499.20000000000005 print(f"{earnings:.2f}") ``` Output — 499.20 The pay is $499.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 20 hours at $24.96 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 24.96\nhours = 20\nearnings = rate * hours # 499.20000000000005\nprint(f\"{earnings:.2f}\")\n```\nOutput — 499.20\n\nThe pay is $499.20." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "499.20", "printed": "499.20", "notation": null}
nlprog_det-setting-0059302
A client paid a $7,500 retainer. The firm has billed 6 hours at $150 per hour. How much of the retainer is left? The remaining balance is $6,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
43
{"gold": "6600", "printed": "6600", "notation": null}
nlprog_det-setting-0059303
Diego was born on June 3, 1955. How old is Diego on April 26, 2021? Let's compute it with Python. ```python from datetime import date born = date(1955, 6, 3) # datetime.date(1955, 6, 3) on = date(2021, 4, 26) # datetime.date(2021, 4, 26) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 65...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
164
{"gold": "65", "printed": "65", "notation": null}
nlprog_det-setting-0059304
Attendance was 63 out of 80. Express it as a percent. In code: ```python present = 63 total = 80 percent = present / total * 100 # 78.75 print(round(percent, 1)) ``` Program output: 78.8 Attendance was 78.8%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "78.8", "printed": "78.8", "notation": null}
nlprog_det-setting-0059305
<|start|><|user|> Attendance was 70 out of 80. Express it as a percent.<|eot|> <|assistant|> present = 70 total = 80 percent = present / total * 100 # 87.5 print(round(percent, 1)) Executing it gives 87.5. 87.5% attended.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 70 out of 80. Express it as a percent." }, { "role": "assistant", "content": " present = 70\n total = 80\n percent = present / total * 100 # 87.5\n print(round(percent, 1))\nExecuting it gives 87.5.\n\n87.5% attended." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
71
{"gold": "87.5", "printed": "87.5", "notation": null}
nlprog_det-setting-0059306
<|start|><|user|> What is the total rent on a 18-month lease at $850 a month?<|eot|> <|assistant|> ```python monthly_rent = 850 months = 18 total = monthly_rent * months # 15300 print(total) ``` The program prints: 15300 In total, $15,300 is paid.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is the total rent on a 18-month lease at $850 a month?" }, { "role": "assistant", "content": "```python\nmonthly_rent = 850\nmonths = 18\ntotal = monthly_rent * months # 15300\nprint(total)\n```\nThe program prints: 15300\n\nIn total, $15,300 is paid." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "15300", "printed": "15300", "notation": null}
nlprog_det-setting-0059307
A storeroom has 553 binders. The office uses 22 a day. How many are left after 9 days? Here's the code. ```python stock = 553 per_day = 22 days = 9 left = stock - per_day * days print(left) ``` What it prints — 355 355 remain.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "355", "printed": "355", "notation": null}
nlprog_det-setting-0059308
<|start|><|system|> Tool definitions: {"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> Starting with 585 toner kits and usi...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"]...
nlprog_det
setting
original
null
deterministic
[]
[]
199
{"gold": "222", "printed": "222", "notation": null}
nlprog_det-setting-0059309
A pack of 6 toner kits sells for $360. What does each cost? Python: ```python total = 360 count = 6 per_item = total // count # 60 print(per_item) ``` # printed result: 60 The unit price is $60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0059310
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 25 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 25 prorated = rent * days_occupied / days_in_month # 1500.0 print(f"{prorated:.2f}") ``` It prints 1500.00, as expect...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 25 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 25\nprorated = rent * days_occupied / days_in_month # 1500.0...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0059311
<|start|><|system|> Functions: {"name": "math_engine", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> Filing fees are $405 per document. What d...
chat
[ { "role": "system", "content": "Functions:\n{\"name\": \"math_engine\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}" ...
nlprog_det
setting
original
null
deterministic
[]
[]
200
{"gold": "5265", "printed": "5265", "notation": null}
nlprog_det-setting-0059312
A 6-month warranty starts on October 7, 2028. On what date does it end? The warranty ends on April 7, 2029.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
34
{"gold": "2029-04-07", "printed": "2029-04-07", "notation": null}
nlprog_det-setting-0059313
If a 6-year limitations period starts on January 3, 2019, when does it end? The program: ```python from datetime import date accrued = date(2019, 1, 3) # datetime.date(2019, 1, 3) years = 6 expires = accrued.replace(year=accrued.year + years) # datetime.date(2025, 1, 3) print(expires.isoformat()) ``` Shell output — ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2025-01-03", "printed": "2025-01-03", "notation": null}
nlprog_det-setting-0059314
<|start|><|system|> Functions: [{"name": "interpreter", "description": "Executes a Python program and returns its output.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}]<|eot|> <|user|> A count moves from 400 to 380. By what...
chat
[ { "role": "system", "content": "Functions:\n[{\"name\": \"interpreter\", \"description\": \"Executes a Python program and returns its output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"script\"]}}]...
nlprog_det
setting
original
null
deterministic
[]
[]
206
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0059315
At 1% a month (simple), what interest builds on $4,000 over 3 months? As Python: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 120.0 print(f"{interest:.2f}") ``` Run output: 120.00 The interest is $120.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "120.00", "printed": "120.00", "notation": null}
nlprog_det-setting-0059316
<|start|><|user|> What is a 10% tip on a $83.22 bill?<|eot|> <|assistant|> ```python bill = 83.22 tip_rate = 10 / 100 # 0.1 tip = bill * tip_rate # 8.322000000000001 print(f"{tip:.2f}") ``` The interpreter prints 8.32. Leave $8.32.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 10% tip on a $83.22 bill?" }, { "role": "assistant", "content": "```python\nbill = 83.22\ntip_rate = 10 / 100 # 0.1\ntip = bill * tip_rate # 8.322000000000001\nprint(f\"{tip:.2f}\")\n```\nThe interpreter prints 8.32.\n\nLeave $8.32." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "8.32", "printed": "8.32", "notation": null}
nlprog_det-setting-0059318
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A pack of 12 toner kits sells for $612. What does each cost?<|eot|> <|assistant|> ```python total = 612 count = 12 per_item = total // count # 51 print(per_item) ``` Run output — 51 The unit price is $51.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A pack of 12 toner kits sells for $612. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 612\ncount = 12\nper_item = total // count # 51\nprint(per_item)\n``...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "51", "printed": "51", "notation": null}
nlprog_det-setting-0059319
The rules require 1/3 of 38 members (round up) to be present. How many is that? A short script: import math members = 38 quorum = math.ceil(members * 1 / 3) # 13 print(quorum) Printed = 13 That is 13 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0059320
A meal costs $201.10. How much is a 18% tip? A few lines of Python do it: bill = 201.1 tip_rate = 18 / 100 # 0.18 tip = bill * tip_rate # 36.198 print(f"{tip:.2f}") Out — 36.20 Leave $36.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "36.20", "printed": "36.20", "notation": null}
nlprog_det-setting-0059321
Starting from $5,000, the team spends $691, $3,079, $871. What remains? In code: ```python budget = 5000 expenses = [691, 3079, 871] left = budget - sum(expenses) # 359 print(left) ``` stdout: 359 $359 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "359", "printed": "359", "notation": null}
nlprog_det-setting-0059323
Fixed costs are $9,000. Each unit sells for $40 and costs $30 to make. How many units must be sold to break even? As Python: ```python import math fixed = 9000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 900 print(units) ``` Running it prints 900, as expected. Break-even is 900 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "900", "printed": "900", "notation": null}
nlprog_det-setting-0059324
An invoice lists 20 paper reams at $7 each, plus 5% sales tax. What is the invoice total? Script: ```python quantity = 20 unit_price = 7 subtotal = quantity * unit_price # 140 total = subtotal * (1 + 5 / 100) # 147.0 print(f"{total:.2f}") ``` The run gives: 147.00 The invoice total is $147.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "147.00", "printed": "147.00", "notation": null}
nlprog_det-setting-0059325
<|start|><|system|> The following tools are available. Call one when it helps. {"name": "python", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}<|eot|> <|use...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"python\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python s...
nlprog_det
setting
original
null
deterministic
[]
[]
239
{"gold": "72 each, 1 left over", "printed": "72 each, 1 left over", "notation": null}
nlprog_det-setting-0059326
<|start|><|user|> 543 files go into boxes of 20. How many boxes does that take?<|eot|> <|assistant|> ```python import math files = 543 per_box = 20 boxes = math.ceil(files / per_box) # 28 print(boxes) ``` What it prints — 28 28 boxes are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "543 files go into boxes of 20. How many boxes does that take?" }, { "role": "assistant", "content": "```python\nimport math\nfiles = 543\nper_box = 20\nboxes = math.ceil(files / per_box) # 28\nprint(boxes)\n```\nWhat it prints — 28\n\n28 boxes are needed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0059327
One can of paint covers 350 square feet. How many cans are needed for 517 square feet of wall? Written as code: ```python import math area = 517 coverage = 350 cans = math.ceil(area / coverage) # 2 print(cans) ``` (Console output: 2) 2 cans are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "2", "printed": "2", "notation": null}
nlprog_det-setting-0059328
Water costs $20 a month plus $5.10 for each 1,000 gallons over 0,000. What is owed for 18,000 gallons? We write it as a program: ```python base = 20 rate = 5.1 used = 18 free = 0 bill = base + rate * max(0, used - free) # 111.8 print(f"{bill:.2f}") ``` (Run result: 111.80) The bill is $111.80.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "111.80", "printed": "111.80", "notation": null}
nlprog_det-setting-0059329
A car travels 298 miles in 2 hours. What is its average speed in miles per hour? ```python distance = 298 hours = 2 speed = distance / hours print(round(speed)) ``` (Out: 149) The average speed is 149 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "149", "printed": "149", "notation": null}
nlprog_det-setting-0059331
<|start|><|user|> The landlord deducts $200, $200 and $85 from a $1,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 1000 deductions = [200, 200, 85] refund = deposit - sum(deductions) # 515 print(refund) ``` This prints 515, as expected. $515 is returned.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The landlord deducts $200, $200 and $85 from a $1,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 1000\ndeductions = [200, 200, 85]\nrefund = deposit - sum(deductions) # 515\nprint(refund)\n```\nThis prints 5...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "515", "printed": "515", "notation": null}
nlprog_det-setting-0059332
Zoe was born on November 27, 1985. How old is Zoe on August 17, 2025? Python: ```python from datetime import date born = date(1985, 11, 27) # datetime.date(1985, 11, 27) on = date(2025, 8, 17) # datetime.date(2025, 8, 17) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 39 print(age) ``` ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0059333
What percentage of $10,000 is $100? Python code: ```python budget = 10000 spent = 100 percent = spent / budget * 100 # 1.0 print(round(percent, 1)) ``` The interpreter prints: 1.0 That is 1.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "1.0", "printed": "1.0", "notation": null}
nlprog_det-setting-0059334
Equipment costs $12,000, has a salvage value of $3,000, and a useful life of 8 years. What is the straight-line depreciation per year? Python version: ```python cost = 12000 salvage = 3000 years = 8 per_year = (cost - salvage) / years # 1125.0 print(f"{per_year:.2f}") ``` stdout: 1125.00 $1,125.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "1125.00", "printed": "1125.00", "notation": null}
nlprog_det-setting-0059335
<|start|><|user|> What is a 18% tip on a $89.23 bill?<|eot|> <|assistant|> Leave $16.06.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What is a 18% tip on a $89.23 bill?" }, { "role": "assistant", "content": "Leave $16.06." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "16.06", "printed": "16.06", "notation": null}
nlprog_det-setting-0059336
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> 155 copies of a 52-page packet are printed at $0.08 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 52 copies = 155 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 644.8000000000001 print(f"{cost:.2f}") ``` Executing it gives...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "155 copies of a 52-page packet are printed at $0.08 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 52\ncopies = 155\ncost_per_page = 0.08\ncost = pages *...
nlprog_det
setting
original
null
deterministic
[]
[]
135
{"gold": "644.80", "printed": "644.80", "notation": null}
nlprog_det-setting-0059337
3 clients win $72,000. The lawyer takes 30%, and the rest is split equally. How much does each client get? In Python: ```python award = 72000 fee = award * 30 / 100 # 21600.0 remaining = award - fee # 50400.0 per_client = remaining / 3 # 16800.0 print(f"{per_client:.2f}") ``` This prints 16800.00, as expected. Eac...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "16800.00", "printed": "16800.00", "notation": null}
nlprog_det-setting-0059338
<|start|><|user|> A $120 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?<|eot|> <|assistant|> bill = 120 tip_rate = 20 / 100 # 0.2 people = 6 each = bill * (1 + tip_rate) / people # 24.0 print(f"{each:.2f}") On running, it outputs 24.00. The share is ...
chat
[ { "role": "user", "content": "A $120 dinner bill gets a 20% tip, and 6 people share the cost equally. What is each person's share?" }, { "role": "assistant", "content": " bill = 120\n tip_rate = 20 / 100 # 0.2\n people = 6\n each = bill * (1 + tip_rate) / people # 24.0\n print(f...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0059339
Filing fees are $405 per document. What do 18 filings cost? Written as code: ```python fee = 405 filings = 18 total = fee * filings # 7290 print(total) ``` Output = 7290 $7,290 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "7290", "printed": "7290", "notation": null}
nlprog_det-setting-0059341
At $21.22 an hour, what does 20 hours of work pay? That earns $424.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "424.40", "printed": "424.40", "notation": null}
nlprog_det-setting-0059342
With 15 rows of 13 chairs and 1 empty chairs, how many chairs are taken? We can compute it in Python. ```python rows = 15 per_row = 13 empty = 1 seated = rows * per_row - empty # 194 print(seated) ``` (Program output: 194) 194 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "194", "printed": "194", "notation": null}
nlprog_det-setting-0059343
A 3-day trip pays $59 a day for meals and $175 a night for lodging (2 nights). What is the total allowance? Computation in Python: days = 3 meal_rate = 59 lodging_rate = 175 nights = days - 1 # 2 total = days * meal_rate + nights * lodging_rate # 527 print(total) The printout reads: 527 The ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "527", "printed": "527", "notation": null}
nlprog_det-setting-0059344
<|start|><|user|> Monthly rent is $1,800. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> ```python rent = 1800 days_in_month = 30 days_occupied = 24 prorated = rent * days_occupied / days_in_month # 1440.0 print(f"{prorated:.2f}") ``` Printed result — 1440.00 Th...
chat
[ { "role": "user", "content": "Monthly rent is $1,800. A tenant moves in with 24 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "```python\nrent = 1800\ndays_in_month = 30\ndays_occupied = 24\nprorated = rent * days_occupied / days_in_month # 1440.0...
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "1440.00", "printed": "1440.00", "notation": null}
nlprog_det-setting-0059345
Attendance was 158 out of 200. Express it as a percent. In code: present = 158 total = 200 percent = present / total * 100 # 79.0 print(round(percent, 1)) stdout: 79.0 Attendance was 79.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "79.0", "printed": "79.0", "notation": null}
nlprog_det-setting-0059346
Express 205 hours in days and hours. Python makes this quick: ```python hours = 205 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` The program prints 8 days and 13 hours. 205 hours is 8 days and 13 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "8 days and 13 hours", "printed": "8 days and 13 hours", "notation": null}
nlprog_det-setting-0059347
<|start|><|user|> A 6 lb package ships at $8 base plus $1.50/lb. What is the charge?<|eot|> <|assistant|> ```python base = 8 per_pound = 1.5 weight = 6 cost = base + per_pound * weight # 17.0 print(f"{cost:.2f}") ``` (Printed result: 17.00) The charge is $17.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 6 lb package ships at $8 base plus $1.50/lb. What is the charge?" }, { "role": "assistant", "content": "```python\nbase = 8\nper_pound = 1.5\nweight = 6\ncost = base + per_pound * weight # 17.0\nprint(f\"{cost:.2f}\")\n```\n(Printed result: 17.00)\n\nThe charge i...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "17.00", "printed": "17.00", "notation": null}
nlprog_det-setting-0059348
<|start|><|user|> $2,000 is invested at 2% compounded yearly. What is it worth after 2 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 2 / 100 # 0.02 years = 2 value = principal * (1 + rate) ** years # 2080.8 print(f"{value:.2f}") ``` Printed result: 2080.80 It is worth $2,080.80.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 2% compounded yearly. What is it worth after 2 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 2 / 100 # 0.02\nyears = 2\nvalue = principal * (1 + rate) ** years # 2080.8\nprint(f\"{value:.2f}\")\n```\nPrinte...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "2080.80", "printed": "2080.80", "notation": null}
nlprog_det-setting-0059349
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Oskar drove 51 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?<|eot|> <|assistant|> ```python miles = 51 rate = 0.7 reimbursement = miles * rate # 35.699999999999996 print(f"{reimbursement:.2f}") ``` Python prints 35....
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Oskar drove 51 miles for work. Mileage is reimbursed at 70 cents a mile. How much is the reimbursement?" }, { "role": "assistant", "content": "```python\nmiles = 51\nrate = 0.7\nreimbursement =...
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "35.70", "printed": "35.70", "notation": null}
nlprog_det-setting-0059350
Split $708 between Yusuf and Liesel in the ratio 1 to 2. What is Yusuf's share? In Python: ```python total = 708 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 236 print(share_a) ``` Interpreter output — 236 Yusuf gets $236.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "236", "printed": "236", "notation": null}
nlprog_det-setting-0059351
Goods bought on December 19, 2027 carry a 12-month warranty. When does it expire? A few lines of Python do it: ```python from datetime import date start = date(2027, 12, 19) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isofor...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
153
{"gold": "2028-12-19", "printed": "2028-12-19", "notation": null}
nlprog_det-setting-0059352
After a 30% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Each share is $7,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
42
{"gold": "7000.00", "printed": "7000.00", "notation": null}
nlprog_det-setting-0059353
A water bill is $20 plus $4.20 per thousand gallons beyond the first 0 thousand. What is the bill for 6 thousand gallons? Python version: ```python base = 20 rate = 4.2 used = 6 free = 0 bill = base + rate * max(0, used - free) # 45.2 print(f"{bill:.2f}") ``` The code prints: 45.20 The bill is $45.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "45.20", "printed": "45.20", "notation": null}
nlprog_det-setting-0059354
<|start|><|user|> A pack of 10 hard drives sells for $310. What does each cost?<|eot|> <|assistant|> ```python total = 310 count = 10 per_item = total // count # 31 print(per_item) ``` Executing it gives 31, as expected. The unit price is $31.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 hard drives sells for $310. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 310\ncount = 10\nper_item = total // count # 31\nprint(per_item)\n```\nExecuting it gives 31, as expected.\n\nThe unit price is $31." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "31", "printed": "31", "notation": null}
nlprog_det-setting-0059355
8 hours of work at $150 an hour: what is the total charge? Let's compute it with Python. ```python hours = 8 rate = 150 bill = hours * rate # 1200 print(f"{bill:.2f}") ``` Program output — 1200.00 The bill is $1,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "1200.00", "printed": "1200.00", "notation": null}
nlprog_det-setting-0059356
With 20% off, what does a $90 desk lamp cost? One way, in code: ```python price = 90 discount = 20 / 100 # 0.2 sale_price = price * (1 - discount) # 72.0 print(f"{sale_price:.2f}") ``` Output of the run: 72.00 The sale price is $72.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0059357
A pack of 4 scissors sells for $56. What does each cost? Each one costs $14.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
28
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0059358
What simple interest does $5,000 earn at 4% a year over 3 years? principal = 5000 rate = 4 / 100 # 0.04 years = 3 interest = principal * rate * years # 600.0 print(f"{interest:.2f}") Output of the run: 600.00 The interest is $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0059359
<|start|><|user|> At $22.60 an hour, what does 32 hours of work pay?<|eot|> <|assistant|> ```python rate = 22.6 hours = 32 earnings = rate * hours # 723.2 print(f"{earnings:.2f}") ``` Console output: 723.20 That earns $723.20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $22.60 an hour, what does 32 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 22.6\nhours = 32\nearnings = rate * hours # 723.2\nprint(f\"{earnings:.2f}\")\n```\nConsole output: 723.20\n\nThat earns $723.20." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "723.20", "printed": "723.20", "notation": null}
nlprog_det-setting-0059360
Monthly rent is $2,400. A tenant moves in with 11 days left in a 31-day month. What is the prorated rent? ```python rent = 2400 days_in_month = 31 days_occupied = 11 prorated = rent * days_occupied / days_in_month # 851.6129032258065 print(f"{prorated:.2f}") ``` Program output — 851.61 The prorated rent is $851.61.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
138
{"gold": "851.61", "printed": "851.61", "notation": null}
nlprog_det-setting-0059361
What commission does Rania make on $46,408 in sales at 4%? The commission is $1,856.32.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "1856.32", "printed": "1856.32", "notation": null}
nlprog_det-setting-0059363
Revenue is $21,000 and costs are $20,000. What is the profit margin as a percent of revenue (one decimal)? The Python version: ```python revenue = 21000 costs = 20000 profit = revenue - costs # 1000 margin = profit / revenue * 100 # 4.761904761904762 print(round(margin, 1)) ``` When run, it prints 4.8. Profit is 4....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
127
{"gold": "4.8", "printed": "4.8", "notation": null}
nlprog_det-setting-0059364
Pack A has 10 items for $3.14. Pack B has 18 items for $29.85. Which has the lower price per item? Python makes this quick: pack_a = 3.14 / 10 # 0.314 pack_b = 29.85 / 18 # 1.6583333333333334 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) Run result — A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0059365
Each of Uma's bike rides burns 300 calories. How many calories over 4 bike rides? Here is the program. ```python per_session = 300 sessions = 4 total = per_session * sessions # 1200 print(total) ``` The program prints 1200. That burns 1200 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1200", "printed": "1200", "notation": null}
nlprog_det-setting-0059367
4 clients win $60,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Coded up: ```python award = 60000 fee = award * 40 / 100 # 24000.0 remaining = award - fee # 36000.0 per_client = remaining / 4 # 9000.0 print(f"{per_client:.2f}") ``` stdout: 9000.00 Each share is $9,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "9000.00", "printed": "9000.00", "notation": null}