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-0067785
96 copies of a 44-page packet are printed at $0.12 per page. What is the cost? Script: ```python pages = 44 copies = 96 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 506.88 print(f"{cost:.2f}") ``` Execution result — 506.88 Printing costs $506.88.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "506.88", "printed": "506.88", "notation": null}
nlprog_det-setting-0067786
What percentage of $8,000 is $3,800? Translated to Python: ```python budget = 8000 spent = 3800 percent = spent / budget * 100 # 47.5 print(round(percent, 1)) ``` Executing it gives 47.5. That is 47.5% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "47.5", "printed": "47.5", "notation": null}
nlprog_det-setting-0067787
The rules require 1/3 of 11 members (round up) to be present. How many is that? One way, in code: ```python import math members = 11 quorum = math.ceil(members * 1 / 3) # 4 print(quorum) ``` On running, it outputs: 4 4 members are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0067790
<|start|><|user|> On which weekday does March 17, 2001 fall?<|eot|> <|assistant|> ```python from datetime import date hearing = date(2001, 3, 17) # datetime.date(2001, 3, 17) print(hearing.strftime("%A")) ``` The interpreter prints Saturday. It is a Saturday.<|eot|> <|end|>
chat
[ { "role": "user", "content": "On which weekday does March 17, 2001 fall?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nhearing = date(2001, 3, 17) # datetime.date(2001, 3, 17)\nprint(hearing.strftime(\"%A\"))\n```\nThe interpreter prints Saturday.\n\nIt is a Satur...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "Saturday", "printed": "Saturday", "notation": null}
nlprog_det-setting-0067791
Express 200 hours in days and hours. Code: hours = 200 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") When run, it prints 8 days and 8 hours, as expected. That is 8 days and 8 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "8 days and 8 hours", "printed": "8 days and 8 hours", "notation": null}
nlprog_det-setting-0067792
A count moves from 200 to 240. By what percent did it change (use a minus sign for a drop)? We can compute it in Python. old = 200 new = 240 change = (new - old) / old * 100 print(round(change)) Out: 20 The change is 20%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
79
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0067793
A 6-day trip pays $74 a day for meals and $140 a night for lodging (5 nights). What is the total allowance? Program: ```python days = 6 meal_rate = 74 lodging_rate = 140 nights = days - 1 # 5 total = days * meal_rate + nights * lodging_rate # 1144 print(total) ``` When run, it prints 1144, as expected. The allowanc...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1144", "printed": "1144", "notation": null}
nlprog_det-setting-0067794
A count moves from 2,000 to 1,900. By what percent did it change (use a minus sign for a drop)? Here is a short program for it. ```python old = 2000 new = 1900 change = (new - old) / old * 100 # -5.0 print(round(change)) ``` Printed result — -5 It changed by -5%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "-5", "printed": "-5", "notation": null}
nlprog_det-setting-0067795
A client paid a $2,500 retainer. The firm has billed 9 hours at $200 per hour. How much of the retainer is left? Python, step by step: ```python retainer = 2500 hours = 9 rate = 200 left = retainer - hours * rate # 700 print(left) ``` Out: 700 The remaining balance is $700.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "700", "printed": "700", "notation": null}
nlprog_det-setting-0067796
A court charges $15 per request plus $0.10 per page after the first 20 pages. What does a 116-page copy cost? The program: ```python pages = 116 base = 15 per_page = 0.1 free_pages = 20 cost = base + max(0, pages - free_pages) * per_page # 24.6 print(f"{cost:.2f}") ``` It outputs: 24.60 The copy costs $24.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "24.60", "printed": "24.60", "notation": null}
nlprog_det-setting-0067797
At $22.59 an hour, what does 40 hours of work pay? The pay is $903.60.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "903.60", "printed": "903.60", "notation": null}
nlprog_det-setting-0067798
135 copies of a 44-page packet are printed at $0.08 per page. What is the cost? ```python pages = 44 copies = 135 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 475.2 print(f"{cost:.2f}") ``` Output: 475.20 Printing costs $475.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "475.20", "printed": "475.20", "notation": null}
nlprog_det-setting-0067799
<|start|><|user|> From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?<|eot|> <|assistant|> ```python retainer = 10000 hours = 2 rate = 200 left = retainer - hours * rate print(left) ``` Running this gives: 9600 $9,600 of the retainer is left.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From a $10,000 retainer, 2 hours at $200/hour have been drawn. What remains?" }, { "role": "assistant", "content": "```python\nretainer = 10000\nhours = 2\nrate = 200\nleft = retainer - hours * rate\nprint(left)\n```\nRunning this gives: 9600\n\n$9,600 of the retain...
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "9600", "printed": "9600", "notation": null}
nlprog_det-setting-0067800
<|start|><|user|> Under a 33% contingency agreement, what fee is owed on a $150,000 award?<|eot|> <|assistant|> recovery = 150000 rate = 33 / 100 # 0.33 fee = recovery * rate # 49500.0 print(f"{fee:.2f}") Output of the run — 49500.00 The lawyer's fee comes to $49,500.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Under a 33% contingency agreement, what fee is owed on a $150,000 award?" }, { "role": "assistant", "content": " recovery = 150000\n rate = 33 / 100 # 0.33\n fee = recovery * rate # 49500.0\n print(f\"{fee:.2f}\")\nOutput of the run — 49500.00\n\nThe l...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "49500.00", "printed": "49500.00", "notation": null}
nlprog_det-setting-0067801
Filing fees are $150 per document. What do 14 filings cost? Python version: ```python fee = 150 filings = 14 total = fee * filings # 2100 print(total) ``` The program outputs 2100. $2,100 in filing fees.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "2100", "printed": "2100", "notation": null}
nlprog_det-setting-0067802
<|start|><|user|> 114 copies of a 56-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 56 copies = 114 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 766.0799999999999 print(f"{cost:.2f}") ``` Run result: 766.08 The job costs $766.08.<|eot|> <|end|>
chat
[ { "role": "user", "content": "114 copies of a 56-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 56\ncopies = 114\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 766.0799999999999\nprint(f\"{cost:.2f}\")\n```\...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "766.08", "printed": "766.08", "notation": null}
nlprog_det-setting-0067803
<|start|><|user|> A deposition lasted 5 hours and 54 minutes. How many minutes is that?<|eot|> <|assistant|> ```python hours = 5 minutes = 54 total_minutes = hours * 60 + minutes # 354 print(total_minutes) ``` (Printed: 354) The deposition lasted 354 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A deposition lasted 5 hours and 54 minutes. How many minutes is that?" }, { "role": "assistant", "content": "```python\nhours = 5\nminutes = 54\ntotal_minutes = hours * 60 + minutes # 354\nprint(total_minutes)\n```\n(Printed: 354)\n\nThe deposition lasted 354 minut...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "354", "printed": "354", "notation": null}
nlprog_det-setting-0067804
<|start|><|user|> How many units at $25 each (variable cost $17) cover $4,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 4000 price = 25 variable = 17 units = math.ceil(fixed / (price - variable)) # 500 print(units) ``` When run, it prints 500. Break-even is 500 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $25 each (variable cost $17) cover $4,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 4000\nprice = 25\nvariable = 17\nunits = math.ceil(fixed / (price - variable)) # 500\nprint(units)\n```\nWhen run, it ...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0067806
How long, in days, is it from May 1, 2028 until February 10, 2029? A short script: ```python from datetime import date first = date(2028, 5, 1) # datetime.date(2028, 5, 1) second = date(2029, 2, 10) # datetime.date(2029, 2, 10) print((second - first).days) ``` It prints: 285 It is 285 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "285", "printed": "285", "notation": null}
nlprog_det-setting-0067807
<|start|><|user|> A pack of 20 markers sells for $1120. What does each cost?<|eot|> <|assistant|> total = 1120 count = 20 per_item = total // count # 56 print(per_item) (stdout: 56) Each one costs $56.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 20 markers sells for $1120. What does each cost?" }, { "role": "assistant", "content": " total = 1120\n count = 20\n per_item = total // count # 56\n print(per_item)\n(stdout: 56)\n\nEach one costs $56." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "56", "printed": "56", "notation": null}
nlprog_det-setting-0067808
127 copies of a 57-page packet are printed at $0.08 per page. What is the cost? Here's the code. ```python pages = 57 copies = 127 cost_per_page = 0.08 cost = pages * copies * cost_per_page # 579.12 print(f"{cost:.2f}") ``` Running this gives 579.12. Printing costs $579.12.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "579.12", "printed": "579.12", "notation": null}
nlprog_det-setting-0067809
A trial runs from October 2, 2018 to October 17, 2018, counting both days. How many calendar days is that? Code: ```python from datetime import date first = date(2018, 10, 2) # datetime.date(2018, 10, 2) last = date(2018, 10, 17) # datetime.date(2018, 10, 17) days = (last - first).days + 1 # 16 print(days) ``` Resu...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "16", "printed": "16", "notation": null}
nlprog_det-setting-0067810
At $18.47 an hour, what does 16 hours of work pay? Python code: ```python rate = 18.47 hours = 16 earnings = rate * hours # 295.52 print(f"{earnings:.2f}") ``` (Console output: 295.52) That earns $295.52.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "295.52", "printed": "295.52", "notation": null}
nlprog_det-setting-0067811
Fines run at $250 per day up to a maximum of $2,500. How much after 38 days? The Python version: ```python per_day = 250 days = 38 cap = 2500 fine = min(per_day * days, cap) # 2500 print(fine) ``` The program outputs: 2500 The fine is $2,500.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2500", "printed": "2500", "notation": null}
nlprog_det-setting-0067812
How many whole days and leftover hours are in 164 hours? Here is a short program for it. hours = 164 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") The script prints: 6 days and 20 hours 164 hours is 6 days and 20 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "6 days and 20 hours", "printed": "6 days and 20 hours", "notation": null}
nlprog_det-setting-0067813
<|start|><|user|> A clerk's office charges $50 for each filing. Yara submits 3 filings. What is the total fee?<|eot|> <|assistant|> ```python fee = 50 filings = 3 total = fee * filings # 150 print(total) ``` stdout: 150 The filings cost $150 in all.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A clerk's office charges $50 for each filing. Yara submits 3 filings. What is the total fee?" }, { "role": "assistant", "content": "```python\nfee = 50\nfilings = 3\ntotal = fee * filings # 150\nprint(total)\n```\nstdout:\n150\n\nThe filings cost $150 in all." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "150", "printed": "150", "notation": null}
nlprog_det-setting-0067814
A $1,200 loan carries 6% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? Each payment is $39.33.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "39.33", "printed": "39.33", "notation": null}
nlprog_det-setting-0067815
80 volunteers are split into 4 equal teams. How many are on each team, and how many are left over? As Python: ```python total = 80 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` When run, it prints 20 each, 0 left over, as expected. The answer: 20 each, 0...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "20 each, 0 left over", "printed": "20 each, 0 left over", "notation": null}
nlprog_det-setting-0067816
<|start|><|user|> Divide 251 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?<|eot|> <|assistant|> ```python total = 251 groups = 4 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") ``` Executing it gives 62 each, 3 left ...
chat
[ { "role": "user", "content": "Divide 251 items among 4 groups as evenly as possible with equal groups. How many per group, and how many remain?" }, { "role": "assistant", "content": "```python\ntotal = 251\ngroups = 4\nper_group, remainder = divmod(total, groups)\nprint(f\"{per_group} each, {rem...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "62 each, 3 left over", "printed": "62 each, 3 left over", "notation": null}
nlprog_det-setting-0067817
Which is cheaper per unit: 12 for $12.95 (A) or 24 for $25.45 (B)? Computing it: ```python pack_a = 12.95 / 12 # 1.0791666666666666 pack_b = 25.45 / 24 # 1.0604166666666666 cheaper = "A" if pack_a < pack_b else "B" # 'B' print(cheaper) ``` (Out: 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-0067818
<|start|><|system|> Answer in plain English.<|eot|> <|user|> Kofi buys 7 boxes of 24 clipboards each and gives away 1 clipboards. How many clipboards are left?<|eot|> <|assistant|> ```python boxes = 7 per_box = 24 given_away = 1 left = boxes * per_box - given_away # 167 print(left) ``` Executed, it shows: 167 That le...
chat
[ { "role": "system", "content": "Answer in plain English." }, { "role": "user", "content": "Kofi buys 7 boxes of 24 clipboards each and gives away 1 clipboards. How many clipboards are left?" }, { "role": "assistant", "content": "```python\nboxes = 7\nper_box = 24\ngiven_away = 1\nlef...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "167", "printed": "167", "notation": null}
nlprog_det-setting-0067819
<|start|><|user|> A library charges $0.15 per book per day late. What is the fine for 1 books that are 18 days late?<|eot|> <|assistant|> ```python per_day = 0.15 days_late = 18 books = 1 fine = per_day * days_late * books # 2.6999999999999997 print(f"{fine:.2f}") ``` (Result: 2.70) The fine is $2.70.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A library charges $0.15 per book per day late. What is the fine for 1 books that are 18 days late?" }, { "role": "assistant", "content": "```python\nper_day = 0.15\ndays_late = 18\nbooks = 1\nfine = per_day * days_late * books # 2.6999999999999997\nprint(f\"{fine:....
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "2.70", "printed": "2.70", "notation": null}
nlprog_det-setting-0067821
A quorum is 1/3 of the 41 members, rounded up. How many members make a quorum? A few lines of Python do it: ```python import math members = 41 quorum = math.ceil(members * 1 / 3) # 14 print(quorum) ``` Run result — 14 That is 14 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0067822
<|start|><|user|> How many 1-foot square tiles cover a 13 ft by 14 ft floor (round up)?<|eot|> <|assistant|> ```python import math length = 13 width = 14 tile = 1 tiles = math.ceil(length * width / (tile * tile)) # 182 print(tiles) ``` When run, it prints 182. 182 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many 1-foot square tiles cover a 13 ft by 14 ft floor (round up)?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 13\nwidth = 14\ntile = 1\ntiles = math.ceil(length * width / (tile * tile)) # 182\nprint(tiles)\n```\nWhen run, it prints 1...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "182", "printed": "182", "notation": null}
nlprog_det-setting-0067823
How many weekdays (Monday to Friday) fall after March 18, 2025 up to and including April 5, 2025? Python, step by step: ```python from datetime import date, timedelta start = date(2025, 3, 18) end = date(2025, 4, 5) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekday() < 5: ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
160
{"gold": "13", "printed": "13", "notation": null}
nlprog_det-setting-0067824
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> A settlement of $84,000 is split equally among 4 parties. How much does each party receive?<|eot|> <|assistant|> Each party receives $21,000.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "A settlement of $84,000 is split equally among 4 parties. How much does each party receive?" }, { "role": "assistant", "content": "Each party receives $21,000." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "21000", "printed": "21000", "notation": null}
nlprog_det-setting-0067826
<|start|><|user|> Straight-line depreciation: cost $45,000, salvage $0, 4 years. How much per year?<|eot|> <|assistant|> cost = 45000 salvage = 0 years = 4 per_year = (cost - salvage) / years # 11250.0 print(f"{per_year:.2f}") It prints: 11250.00 $11,250.00 a year.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $0, 4 years. How much per year?" }, { "role": "assistant", "content": " cost = 45000\n salvage = 0\n years = 4\n per_year = (cost - salvage) / years # 11250.0\n print(f\"{per_year:.2f}\")\nIt prints: ...
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "11250.00", "printed": "11250.00", "notation": null}
nlprog_det-setting-0067827
Straight-line depreciation: cost $45,000, salvage $3,000, 3 years. How much per year? Here is a short program for it. ```python cost = 45000 salvage = 3000 years = 3 per_year = (cost - salvage) / years # 14000.0 print(f"{per_year:.2f}") ``` Execution prints 14000.00, as expected. $14,000.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0067828
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|use...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sour...
nlprog_det
setting
original
null
deterministic
[]
[]
201
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0067829
A meal costs $139.44. How much is a 22% tip? The Python version: ```python bill = 139.44 tip_rate = 22 / 100 # 0.22 tip = bill * tip_rate # 30.6768 print(f"{tip:.2f}") ``` Program output — 30.68 Leave $30.68.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "30.68", "printed": "30.68", "notation": null}
nlprog_det-setting-0067830
<|start|><|user|> A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?<|eot|> <|assistant|> ```python recovery = 60000 rate = 35 / 100 # 0.35 fee = recovery * rate # 21000.0 print(f"{fee:.2f}") ``` (Out: 21000.00) The lawyer's fee comes to $21,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A lawyer's fee is 35% of a $60,000 recovery. How large is the fee?" }, { "role": "assistant", "content": "```python\nrecovery = 60000\nrate = 35 / 100 # 0.35\nfee = recovery * rate # 21000.0\nprint(f\"{fee:.2f}\")\n```\n(Out: 21000.00)\n\nThe lawyer's fee comes to...
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "21000.00", "printed": "21000.00", "notation": null}
nlprog_det-setting-0067831
Shipping costs $10 plus $1.20 per pound. What does a 10-pound parcel cost to ship? Programmatically: ```python base = 10 per_pound = 1.2 weight = 10 cost = base + per_pound * weight # 22.0 print(f"{cost:.2f}") ``` stdout — 22.00 Shipping costs $22.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0067832
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> The landlord deducts $85, $200 and $150 from a $2,000 deposit. What is returned to the tenant?<|eot|> <|assistant|> ```python deposit = 2000 deductions = [85, 200, 150] refund = deposit - sum(deductions) # 1565 print(refund) ``` (Printed: 1565) The refu...
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "The landlord deducts $85, $200 and $150 from a $2,000 deposit. What is returned to the tenant?" }, { "role": "assistant", "content": "```python\ndeposit = 2000\ndeductions = [85, 200, 150]\...
nlprog_det
setting
original
null
deterministic
[]
[]
115
{"gold": "1565", "printed": "1565", "notation": null}
nlprog_det-setting-0067833
A 130-mile drive at a steady 40 mph takes how many minutes? Set it up in Python: ```python distance = 130 speed = 40 minutes = distance / speed * 60 # 195.0 print(round(minutes)) ``` Console output: 195 195 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "195", "printed": "195", "notation": null}
nlprog_det-setting-0067834
A 10-day notice period begins on June 13, 2025. On what date does it end? Python does the arithmetic: from datetime import date, timedelta start = date(2025, 6, 13) # datetime.date(2025, 6, 13) end = start + timedelta(days=10) # datetime.date(2025, 6, 23) print(end.isoformat()) Out — 2025-06-23 That...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
134
{"gold": "2025-06-23", "printed": "2025-06-23", "notation": null}
nlprog_det-setting-0067835
Of a $5,000 budget, $1,000 has been spent. What percent is that? Computing it: ```python budget = 5000 spent = 1000 percent = spent / budget * 100 # 20.0 print(round(percent, 1)) ``` Output: 20.0 20.0% has been spent.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "20.0", "printed": "20.0", "notation": null}
nlprog_det-setting-0067836
Split $3,560 between Ulla and Beatriz in the ratio 2 to 3. What is Ulla's share? Python, step by step: ```python total = 3560 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 1424 print(share_a) ``` Running it prints: 1424 Ulla gets $1,424.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "1424", "printed": "1424", "notation": null}
nlprog_det-setting-0067837
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Fines run at $100 per day up to a maximum of $1,000. How much after 12 days?<|eot|> <|assistant|> per_day = 100 days = 12 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) # execution result: 1000 $1,000 is ow...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Fines run at $100 per day up to a maximum of $1,000. How much after 12 days?" }, { "role": "assistant", "content": " per_day = 100\n days = 12\n cap = 1000\n fine = ...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0067838
A $1,200 loan carries 8% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment? The program: ```python principal = 1200 annual_rate = 8 / 100 # 0.08 months = 12 interest = principal * annual_rate * months / 12 # 96.0 payment = (principal + interest) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "108.00", "printed": "108.00", "notation": null}
nlprog_det-setting-0067839
Under a 33% contingency agreement, what fee is owed on a $25,000 award? Python, step by step: ```python recovery = 25000 rate = 33 / 100 # 0.33 fee = recovery * rate # 8250.0 print(f"{fee:.2f}") ``` Run output — 8250.00 The fee is $8,250.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8250.00", "printed": "8250.00", "notation": null}
nlprog_det-setting-0067840
A count moves from 1,000 to 1,400. By what percent did it change (use a minus sign for a drop)? Written as code: ```python old = 1000 new = 1400 change = (new - old) / old * 100 # 40.0 print(round(change)) ``` # stdout: 40 The change is 40%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0067841
How many minutes pass from 7:57 AM to 2:48 PM on the same day? Computation in Python: ```python start = 7 * 60 + 57 # 477 end = 14 * 60 + 48 # 888 print(end - start) ``` Out: 411 411 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "411", "printed": "411", "notation": null}
nlprog_det-setting-0067842
A measure needs at least 60% of 102 votes. How many votes is that, rounded up? Coded up: ```python import math voters = 102 needed = math.ceil(voters * 60 / 100) # 62 print(needed) ``` The run gives 62, as expected. At least 62 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "62", "printed": "62", "notation": null}
nlprog_det-setting-0067843
What average speed covers 138 miles in 2 hours? Here's the code. ```python distance = 138 hours = 2 speed = distance / hours # 69.0 print(round(speed)) ``` The run gives 69. It averages 69 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "69", "printed": "69", "notation": null}
nlprog_det-setting-0067844
<|start|><|user|> Counting the first and last day, how many days are there from January 24, 2020 through February 16, 2020?<|eot|> <|assistant|> ```python from datetime import date first = date(2020, 1, 24) # datetime.date(2020, 1, 24) last = date(2020, 2, 16) # datetime.date(2020, 2, 16) days = (last - first).days +...
chat
[ { "role": "user", "content": "Counting the first and last day, how many days are there from January 24, 2020 through February 16, 2020?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2020, 1, 24) # datetime.date(2020, 1, 24)\nlast = date(2020, 2, 16) ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0067845
<|start|><|user|> What percentage of $5,000 is $700?<|eot|> <|assistant|> ```python budget = 5000 spent = 700 percent = spent / budget * 100 # 14.000000000000002 print(round(percent, 1)) ``` Printed result: 14.0 That is 14.0% of the budget.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What percentage of $5,000 is $700?" }, { "role": "assistant", "content": "```python\nbudget = 5000\nspent = 700\npercent = spent / budget * 100 # 14.000000000000002\nprint(round(percent, 1))\n```\nPrinted result: 14.0\n\nThat is 14.0% of the budget." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "14.0", "printed": "14.0", "notation": null}
nlprog_det-setting-0067846
If a 2-year limitations period starts on November 23, 2024, when does it end? Python version: ```python from datetime import date accrued = date(2024, 11, 23) # datetime.date(2024, 11, 23) years = 2 expires = accrued.replace(year=accrued.year + years) # datetime.date(2026, 11, 23) print(expires.isoformat()) ``` Pyth...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
152
{"gold": "2026-11-23", "printed": "2026-11-23", "notation": null}
nlprog_det-setting-0067847
How many of 217 votes make 75% (round up)? One way, in code: ```python import math voters = 217 needed = math.ceil(voters * 75 / 100) # 163 print(needed) ``` Console output: 163 At least 163 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "163", "printed": "163", "notation": null}
nlprog_det-setting-0067848
<|start|><|user|> Nikhil lends $8,000 at 8% simple interest per year for 6 years. How much interest is earned?<|eot|> <|assistant|> principal = 8000 rate = 8 / 100 # 0.08 years = 6 interest = principal * rate * years # 3840.0 print(f"{interest:.2f}") Out — 3840.00 The interest is $3,840.00.<|eot|...
chat
[ { "role": "user", "content": "Nikhil lends $8,000 at 8% simple interest per year for 6 years. How much interest is earned?" }, { "role": "assistant", "content": " principal = 8000\n rate = 8 / 100 # 0.08\n years = 6\n interest = principal * rate * years # 3840.0\n print(f\"{inte...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "3840.00", "printed": "3840.00", "notation": null}
nlprog_det-setting-0067849
At 1.5% a month (simple), what interest builds on $4,000 over 5 months? Python code: ```python balance = 4000 monthly_rate = 1.5 / 100 # 0.015 months = 5 interest = balance * monthly_rate * months # 300.0 print(f"{interest:.2f}") ``` # printed: 300.00 The interest is $300.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "300.00", "printed": "300.00", "notation": null}
nlprog_det-setting-0067850
<|start|><|user|> A 9-day trip pays $59 a day for meals and $140 a night for lodging (8 nights). What is the total allowance?<|eot|> <|assistant|> ```python days = 9 meal_rate = 59 lodging_rate = 140 nights = days - 1 # 8 total = days * meal_rate + nights * lodging_rate # 1651 print(total) ``` That prints: 1651 That...
chat
[ { "role": "user", "content": "A 9-day trip pays $59 a day for meals and $140 a night for lodging (8 nights). What is the total allowance?" }, { "role": "assistant", "content": "```python\ndays = 9\nmeal_rate = 59\nlodging_rate = 140\nnights = days - 1 # 8\ntotal = days * meal_rate + nights * lo...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1651", "printed": "1651", "notation": null}
nlprog_det-setting-0067851
With 26 rows of 18 chairs and 33 empty chairs, how many chairs are taken? A few lines of Python do it: ```python rows = 26 per_row = 18 empty = 33 seated = rows * per_row - empty # 435 print(seated) ``` Interpreter output — 435 435 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "435", "printed": "435", "notation": null}
nlprog_det-setting-0067852
11 of 20 members attended. What percent attended? Translated to Python: ```python present = 11 total = 20 percent = present / total * 100 # 55.00000000000001 print(round(percent, 1)) ``` (Program output: 55.0) 55.0% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "55.0", "printed": "55.0", "notation": null}
nlprog_det-setting-0067853
<|start|><|user|> Count the days between February 24, 2024 and June 30, 2024.<|eot|> <|assistant|> ```python from datetime import date first = date(2024, 2, 24) # datetime.date(2024, 2, 24) second = date(2024, 6, 30) # datetime.date(2024, 6, 30) print((second - first).days) ``` Out: 127 It is 127 days.<|eot|> <|end|...
chat
[ { "role": "user", "content": "Count the days between February 24, 2024 and June 30, 2024." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2024, 2, 24) # datetime.date(2024, 2, 24)\nsecond = date(2024, 6, 30) # datetime.date(2024, 6, 30)\nprint((second ...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "127", "printed": "127", "notation": null}
nlprog_det-setting-0067854
The firm was founded in 1993. How many years had passed by 2022? We can compute it in Python. start_year = 1993 end_year = 2022 print(end_year - start_year) # out: 29 That is 29 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
65
{"gold": "29", "printed": "29", "notation": null}
nlprog_det-setting-0067855
Convert -5 °C to Fahrenheit. As a program: celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) # printed result: 23 It equals 23 degrees Fahrenheit.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0067856
A 9 × 5 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up? Let's compute it with Python. ```python import math length = 9 width = 5 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 12 print(tiles) ``` Printed result: 12 It takes 12 tiles.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0067858
29 of 40 members attended. What percent attended? The program: ```python present = 29 total = 40 percent = present / total * 100 # 72.5 print(round(percent, 1)) ``` It outputs 72.5. 72.5% attended.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "72.5", "printed": "72.5", "notation": null}
nlprog_det-setting-0067859
<|start|><|system|> You have access to these functions: [{"name": "sandbox_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Each storage bo...
chat
[ { "role": "system", "content": "You have access to these functions:\n[{\"name\": \"sandbox_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"re...
nlprog_det
setting
original
null
deterministic
[]
[]
220
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0067860
<|start|><|user|> At $15.44 an hour, what does 12 hours of work pay?<|eot|> <|assistant|> ```python rate = 15.44 hours = 12 earnings = rate * hours # 185.28 print(f"{earnings:.2f}") ``` The program prints 185.28, as expected. The pay is $185.28.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At $15.44 an hour, what does 12 hours of work pay?" }, { "role": "assistant", "content": "```python\nrate = 15.44\nhours = 12\nearnings = rate * hours # 185.28\nprint(f\"{earnings:.2f}\")\n```\nThe program prints 185.28, as expected.\n\nThe pay is $185.28." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "185.28", "printed": "185.28", "notation": null}
nlprog_det-setting-0067861
The paralegal logged 10.5 hours at a rate of $410. How much is billed? A Python solution: ```python hours = 10.5 rate = 410 bill = hours * rate # 4305.0 print(f"{bill:.2f}") ``` Run result — 4305.00 That comes to $4,305.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "4305.00", "printed": "4305.00", "notation": null}
nlprog_det-setting-0067863
<|start|><|system|> You may call the tools below. [{"name": "py_exec", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> 3 friends split a $180 bill plus a 2...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"py_exec\", \"description\": \"Executes Python code and returns stdout.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"code\"]}...
nlprog_det
setting
original
null
deterministic
[]
[]
233
{"gold": "72.00", "printed": "72.00", "notation": null}
nlprog_det-setting-0067864
Malik earns $16.00 an hour and time and a half for hours over 40. What is the pay for a 44-hour week? ```python rate = 16.0 hours = 44 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 96.0 pay = regular + overtime # 736.0 print(f"{pay:.2f}") ``` What it prints — 736.00 The weekly pay is $736.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
136
{"gold": "736.00", "printed": "736.00", "notation": null}
nlprog_det-setting-0067865
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term?<|eot|> <|assistant|> The rent over the term is $21,600.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "A lease runs for 18 months at $1,200 per month. How much rent is paid over the whole term?" }, { "role": "assistant", "content": "The rent over the term is $21,600." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
54
{"gold": "21600", "printed": "21600", "notation": null}
nlprog_det-setting-0067866
<|start|><|user|> What does $5,000 grow to in 2 years at 2% annual compounding?<|eot|> <|assistant|> The balance is $5,202.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $5,000 grow to in 2 years at 2% annual compounding?" }, { "role": "assistant", "content": "The balance is $5,202.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "5202.00", "printed": "5202.00", "notation": null}
nlprog_det-setting-0067867
A car travels 320 miles in 5 hours. What is its average speed in miles per hour? Written as code: ```python distance = 320 hours = 5 speed = distance / hours # 64.0 print(round(speed)) ``` Printed result: 64 The average speed is 64 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "64", "printed": "64", "notation": null}
nlprog_det-setting-0067868
<|start|><|system|> Tools (call with JSON): {"name": "calculator", "description": "Runs a short Python snippet and returns what it prints.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}}<|eot|> <|user|> How many minutes pass ...
chat
[ { "role": "system", "content": "Tools (call with JSON):\n{\"name\": \"calculator\", \"description\": \"Runs a short Python snippet and returns what it prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\"...
nlprog_det
setting
original
null
deterministic
[]
[]
196
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0067869
<|start|><|system|> You help with homework problems.<|eot|> <|user|> What simple interest does $12,000 earn at 2% a year over 3 years?<|eot|> <|assistant|> The interest is $720.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "What simple interest does $12,000 earn at 2% a year over 3 years?" }, { "role": "assistant", "content": "The interest is $720.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
50
{"gold": "720.00", "printed": "720.00", "notation": null}
nlprog_det-setting-0067870
Straight-line depreciation: cost $30,000, salvage $6,000, 5 years. How much per year? A Python solution: ```python cost = 30000 salvage = 6000 years = 5 per_year = (cost - salvage) / years # 4800.0 print(f"{per_year:.2f}") ``` Output of the run — 4800.00 Depreciation is $4,800.00 per year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
131
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0067871
A printer costs $120. It is 15% off. What is the sale price? Programmatically: ```python price = 120 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 102.0 print(f"{sale_price:.2f}") ``` On running, it outputs 102.00. It costs $102.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "102.00", "printed": "102.00", "notation": null}
nlprog_det-setting-0067872
<|start|><|system|> Write short, precise answers.<|eot|> <|user|> What does $5,000 grow to in 5 years at 2% annual compounding?<|eot|> <|assistant|> ```python principal = 5000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 5520.404016 print(f"{value:.2f}") ``` What it prints: 5520.40 The b...
chat
[ { "role": "system", "content": "Write short, precise answers." }, { "role": "user", "content": "What does $5,000 grow to in 5 years at 2% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 5000\nrate = 2 / 100 # 0.02\nyears = 5\nvalue = principal * (1 ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "5520.40", "printed": "5520.40", "notation": null}
nlprog_det-setting-0067873
A hearing is set for October 20, 1993. What day of the week is that? October 20, 1993 is a Wednesday.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
29
{"gold": "Wednesday", "printed": "Wednesday", "notation": null}
nlprog_det-setting-0067874
A 75-mile drive at a steady 45 mph takes how many minutes? Computation in Python: ```python distance = 75 speed = 45 minutes = distance / speed * 60 # 100.0 print(round(minutes)) ``` (Printed result: 100) 100 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0067875
<|start|><|user|> A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?<|eot|> <|assistant|> ```python principal = 1200 annual_rate = 10 / 100 # 0.1 months = 12 interest = principal * annual_rate * months / 12 # 120.0 paymen...
chat
[ { "role": "user", "content": "A $1,200 loan carries 10% simple annual interest over 12 months. Interest and principal are repaid in equal monthly payments. What is each payment?" }, { "role": "assistant", "content": "```python\nprincipal = 1200\nannual_rate = 10 / 100 # 0.1\nmonths = 12\nintere...
nlprog_det
setting
original
null
deterministic
[]
[]
144
{"gold": "110.00", "printed": "110.00", "notation": null}
nlprog_det-setting-0067876
At an exchange rate of 1.12 USD per GBP, how many USD is 1,551 GBP? Python code: ```python amount = 1551 rate = 1.12 converted = amount * rate # 1737.1200000000001 print(f"{converted:.2f}") ``` Out: 1737.12 That is 1,737.12 USD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
116
{"gold": "1737.12", "printed": "1737.12", "notation": null}
nlprog_det-setting-0067877
<|start|><|user|> Which is cheaper per unit: 6 for $7.48 (A) or 18 for $30.86 (B)?<|eot|> <|assistant|> ```python pack_a = 7.48 / 6 # 1.2466666666666668 pack_b = 30.86 / 18 # 1.7144444444444444 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) ``` # console output: A Pack A is cheaper per item.<|eot|> ...
chat
[ { "role": "user", "content": "Which is cheaper per unit: 6 for $7.48 (A) or 18 for $30.86 (B)?" }, { "role": "assistant", "content": "```python\npack_a = 7.48 / 6 # 1.2466666666666668\npack_b = 30.86 / 18 # 1.7144444444444444\ncheaper = \"A\" if pack_a < pack_b else \"B\" # 'A'\nprint(cheaper...
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0067878
A count moves from 200 to 220. By what percent did it change (use a minus sign for a drop)? Here is a short program for it. ```python old = 200 new = 220 change = (new - old) / old * 100 print(round(change)) ``` # run result: 10 It changed by 10%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0067879
How long, in days, is it from February 11, 2027 until March 16, 2028? In Python: ```python from datetime import date first = date(2027, 2, 11) # datetime.date(2027, 2, 11) second = date(2028, 3, 16) # datetime.date(2028, 3, 16) print((second - first).days) ``` Python prints 399, as expected. It is 399 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
133
{"gold": "399", "printed": "399", "notation": null}
nlprog_det-setting-0067880
<|start|><|user|> A 18-month warranty starts on September 10, 2028. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2028, 9, 10) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isof...
chat
[ { "role": "user", "content": "A 18-month warranty starts on September 10, 2028. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2028, 9, 10)\nmonths = 18\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(sta...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2030-03-10", "printed": "2030-03-10", "notation": null}
nlprog_det-setting-0067881
Starting with 1808 desk lamps and using 16 per day, how many remain after 7 days? Python makes this quick: ```python stock = 1808 per_day = 16 days = 7 left = stock - per_day * days # 1696 print(left) ``` Run it and it prints 1696. 1696 desk lamps are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "1696", "printed": "1696", "notation": null}
nlprog_det-setting-0067882
<|start|><|user|> After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> award = 72000 fee = award * 25 / 100 # 18000.0 remaining = award - fee # 54000.0 per_client = remaining / 3 # 18000.0 print(f"{per_cli...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $72,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": " award = 72000\n fee = award * 25 / 100 # 18000.0\n remaining = award - fee # 54000.0\n p...
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "18000.00", "printed": "18000.00", "notation": null}
nlprog_det-setting-0067883
Delia earns a 2% commission on $56,033 of sales. What is the commission? Coded up: sales = 56033 rate = 2 / 100 # 0.02 commission = sales * rate # 1120.66 print(f"{commission:.2f}") The interpreter prints 1120.66. Delia earns $1,120.66.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "1120.66", "printed": "1120.66", "notation": null}
nlprog_det-setting-0067884
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> What does $1,000 grow to in 3 years at 4% annual compounding?<|eot|> <|assistant|> ```python principal = 1000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 1124.864 print(f"{value:.2f}") ``` The interpreter prints...
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "What does $1,000 grow to in 3 years at 4% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 1000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = prin...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "1124.86", "printed": "1124.86", "notation": null}
nlprog_det-setting-0067885
$10,000 is invested at 2% compounded yearly. What is it worth after 2 years? Here is the program. ```python principal = 10000 rate = 2 / 100 years = 2 value = principal * (1 + rate) ** years print(f"{value:.2f}") ``` # console output: 10404.00 It is worth $10,404.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "10404.00", "printed": "10404.00", "notation": null}
nlprog_det-setting-0067886
<|start|><|system|> Tool definitions: {"name": "run_python", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"program": {"type": "string", "description": "Python source code"}}, "required": ["program"]}}<|eot|> <|user|> A 33 lb package ships at $10 base p...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"run_python\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"program\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"required\": [\"program\"...
nlprog_det
setting
original
null
deterministic
[]
[]
223
{"gold": "59.50", "printed": "59.50", "notation": null}
nlprog_det-setting-0067888
Someone works 24 hours at $18.83 per hour. What are the earnings? ```python rate = 18.83 hours = 24 earnings = rate * hours # 451.91999999999996 print(f"{earnings:.2f}") ``` Out = 451.92 The pay is $451.92.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "451.92", "printed": "451.92", "notation": null}
nlprog_det-setting-0067889
<|start|><|user|> A count moves from 800 to 400. By what percent did it change (use a minus sign for a drop)?<|eot|> <|assistant|> ```python old = 800 new = 400 change = (new - old) / old * 100 # -50.0 print(round(change)) ``` It outputs: -50 The change is -50%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A count moves from 800 to 400. By what percent did it change (use a minus sign for a drop)?" }, { "role": "assistant", "content": "```python\nold = 800\nnew = 400\nchange = (new - old) / old * 100 # -50.0\nprint(round(change))\n```\nIt outputs: -50\n\nThe change is...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "-50", "printed": "-50", "notation": null}
nlprog_det-setting-0067890
At a 7% tax rate, what is the tax on $415.39? $29.08 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "29.08", "printed": "29.08", "notation": null}
nlprog_det-setting-0067891
<|start|><|user|> Rania's scores were 96, 93, 55 and 100. What is the average score?<|eot|> <|assistant|> ```python scores = [96, 93, 55, 100] average = sum(scores) // len(scores) # 86 print(average) ``` The run gives 86, as expected. The mean is 86.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Rania's scores were 96, 93, 55 and 100. What is the average score?" }, { "role": "assistant", "content": "```python\nscores = [96, 93, 55, 100]\naverage = sum(scores) // len(scores) # 86\nprint(average)\n```\nThe run gives 86, as expected.\n\nThe mean is 86." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "86", "printed": "86", "notation": null}
nlprog_det-setting-0067892
How many meters are in 70.8 kilometers? Programmatically: ```python km = 70.8 meters = km * 1000 # 70800.0 print(round(meters)) ``` Result = 70800 That is 70,800 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "70800", "printed": "70800", "notation": null}