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-0069163
A quorum is 1/3 of the 29 members, rounded up. How many members make a quorum? Python, step by step: ```python import math members = 29 quorum = math.ceil(members * 1 / 3) # 10 print(quorum) ``` Execution prints 10, as expected. That is 10 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "10", "printed": "10", "notation": null}
nlprog_det-setting-0069164
A hall has 24 rows of 8 seats, and 13 seats are empty. How many people are seated? 179 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "179", "printed": "179", "notation": null}
nlprog_det-setting-0069165
<|start|><|system|> The following tools are available. Call one when it helps. [{"name": "compute", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"source": {"type": "string", "description": "Python source code"}}, "required": ["source"]}}]<|eot|> <|us...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n[{\"name\": \"compute\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source\": {\"type\": \"string\", \"description\": \"Python sou...
nlprog_det
setting
original
null
deterministic
[]
[]
202
{"gold": "1875", "printed": "1875", "notation": null}
nlprog_det-setting-0069166
A $1,200 loan carries 8% simple annual interest over 36 months. Interest and principal are repaid in equal monthly payments. What is each payment? A short script: ```python principal = 1200 annual_rate = 8 / 100 # 0.08 months = 36 interest = principal * annual_rate * months / 12 # 288.0 payment = (principal + intere...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
151
{"gold": "41.33", "printed": "41.33", "notation": null}
nlprog_det-setting-0069167
How many whole days and leftover hours are in 326 hours? Python, step by step: ```python hours = 326 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` It outputs 13 days and 14 hours. 326 hours is 13 days and 14 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "13 days and 14 hours", "printed": "13 days and 14 hours", "notation": null}
nlprog_det-setting-0069168
A library charges $0.50 per book per day late. What is the fine for 2 books that are 22 days late? The fine is $22.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
35
{"gold": "22.00", "printed": "22.00", "notation": null}
nlprog_det-setting-0069169
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 5 years. What is the straight-line depreciation per year? The computation: ```python cost = 30000 salvage = 6000 years = 5 per_year = (cost - salvage) / years print(f"{per_year:.2f}") ``` Printed: 4800.00 $4,800.00 a year.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "4800.00", "printed": "4800.00", "notation": null}
nlprog_det-setting-0069170
Water costs $20 a month plus $5.10 for each 1,000 gallons over 2,000. What is owed for 25,000 gallons? The program: ```python base = 20 rate = 5.1 used = 25 free = 2 bill = base + rate * max(0, used - free) # 137.3 print(f"{bill:.2f}") ``` The program prints 137.30. The bill is $137.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "137.30", "printed": "137.30", "notation": null}
nlprog_det-setting-0069172
With 25 rows of 12 chairs and 1 empty chairs, how many chairs are taken? One way, in code: ```python rows = 25 per_row = 12 empty = 1 seated = rows * per_row - empty # 299 print(seated) ``` The code prints: 299 299 seats are taken.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "299", "printed": "299", "notation": null}
nlprog_det-setting-0069173
<|start|><|system|> You can call tools. Available tools: {"name": "interpreter", "description": "Python sandbox for calculations. Returns printed text.", "parameters": {"type": "object", "properties": {"script": {"type": "string", "description": "Python source code"}}, "required": ["script"]}} {"name": "convert_units",...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n{\"name\": \"interpreter\", \"description\": \"Python sandbox for calculations. Returns printed text.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"script\": {\"type\": \"string\", \"description\": \"Python source code\"}},...
nlprog_det
setting
original
null
deterministic
[]
[]
400
{"gold": "100", "printed": "100", "notation": null}
nlprog_det-setting-0069174
A car travels 145 miles in 1 hours. What is its average speed in miles per hour? Code: ```python distance = 145 hours = 1 speed = distance / hours # 145.0 print(round(speed)) ``` Printed = 145 The average speed is 145 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "145", "printed": "145", "notation": null}
nlprog_det-setting-0069175
A $84 dinner bill gets a 18% tip, and 3 people share the cost equally. What is each person's share? As a program: ```python bill = 84 tip_rate = 18 / 100 # 0.18 people = 3 each = bill * (1 + tip_rate) / people # 33.04 print(f"{each:.2f}") ``` Run output — 33.04 Each person pays $33.04.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "33.04", "printed": "33.04", "notation": null}
nlprog_det-setting-0069176
Papers were served by mail on October 26, 2026. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Script: ```python from datetime import date, timedelta served = date(2026, 10, 26) # datetime.date(2026, 10, 26) response_days = 28 mail_days = 3 due = served + timedelta(days=...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
178
{"gold": "2026-11-26", "printed": "2026-11-26", "notation": null}
nlprog_det-setting-0069177
<|start|><|user|> Parking is $5 per hour with a daily maximum of $18. What do 5 hours cost?<|eot|> <|assistant|> rate = 5 hours = 5 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) Printed: 18 Parking costs $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $5 per hour with a daily maximum of $18. What do 5 hours cost?" }, { "role": "assistant", "content": " rate = 5\n hours = 5\n daily_max = 18\n cost = min(rate * hours, daily_max) # 18\n print(cost)\nPrinted: 18\n\nParking costs $18." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0069178
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> A 448-page report must be reviewed in 16 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 448 days = 16 per_day = pages // days # 28 print(per_day) ``` # console output: 28 28 pages a day.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "A 448-page report must be reviewed in 16 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 448\ndays = 16\nper_day = pages // days ...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "28", "printed": "28", "notation": null}
nlprog_det-setting-0069179
What average speed covers 554 miles in 2 hours? Script: ```python distance = 554 hours = 2 speed = distance / hours # 277.0 print(round(speed)) ``` Python prints: 277 The average speed is 277 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "277", "printed": "277", "notation": null}
nlprog_det-setting-0069181
With 25% off, what does a $250 filing cabinet cost? Here is a short program for it. ```python price = 250 discount = 25 / 100 # 0.25 sale_price = price * (1 - discount) # 187.5 print(f"{sale_price:.2f}") ``` Running it prints: 187.50 It costs $187.50.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "187.50", "printed": "187.50", "notation": null}
nlprog_det-setting-0069182
<|start|><|user|> At 60 miles per hour, how many minutes does a 260-mile trip take?<|eot|> <|assistant|> distance = 260 speed = 60 minutes = distance / speed * 60 # 260.0 print(round(minutes)) Running this gives: 260 260 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At 60 miles per hour, how many minutes does a 260-mile trip take?" }, { "role": "assistant", "content": " distance = 260\n speed = 60\n minutes = distance / speed * 60 # 260.0\n print(round(minutes))\nRunning this gives: 260\n\n260 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
74
{"gold": "260", "printed": "260", "notation": null}
nlprog_det-setting-0069183
A garage charges $4 an hour, never more than $15 a day. How much for 8 hours? We can compute it in Python. ```python rate = 4 hours = 8 daily_max = 15 cost = min(rate * hours, daily_max) # 15 print(cost) ``` (stdout: 15) Parking costs $15.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0069184
Count the days between October 13, 2027 and May 16, 2028. Code: ```python from datetime import date first = date(2027, 10, 13) # datetime.date(2027, 10, 13) second = date(2028, 5, 16) # datetime.date(2028, 5, 16) print((second - first).days) ``` It outputs: 216 It is 216 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "216", "printed": "216", "notation": null}
nlprog_det-setting-0069185
How many units at $15 each (variable cost $11) cover $9,000 of fixed costs? ```python import math fixed = 9000 price = 15 variable = 11 units = math.ceil(fixed / (price - variable)) # 2250 print(units) ``` Out: 2250 2250 units are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
101
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0069186
Express 145 hours in days and hours. Computing it: ```python hours = 145 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` # printed: 6 days and 1 hours 145 hours is 6 days and 1 hours.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "6 days and 1 hours", "printed": "6 days and 1 hours", "notation": null}
nlprog_det-setting-0069187
3 runs at 350 calories each burn how many calories in total? Here is a short program for it. ```python per_session = 350 sessions = 3 total = per_session * sessions # 1050 print(total) ``` Program output: 1050 That burns 1050 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "1050", "printed": "1050", "notation": null}
nlprog_det-setting-0069188
Goods bought on October 4, 2023 carry a 12-month warranty. When does it expire? Python does the arithmetic: ```python from datetime import date start = date(2023, 10, 4) months = 12 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat(...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "2024-10-04", "printed": "2024-10-04", "notation": null}
nlprog_det-setting-0069189
<|start|><|system|> Avoid unnecessary detail.<|eot|> <|user|> Counting only Monday through Friday, how many business days are there after October 9, 2019 through November 6, 2019?<|eot|> <|assistant|> ```python from datetime import date, timedelta start = date(2019, 10, 9) end = date(2019, 11, 6) count = 0 for k in ran...
chat
[ { "role": "system", "content": "Avoid unnecessary detail." }, { "role": "user", "content": "Counting only Monday through Friday, how many business days are there after October 9, 2019 through November 6, 2019?" }, { "role": "assistant", "content": "```python\nfrom datetime import dat...
nlprog_det
setting
original
null
deterministic
[]
[]
167
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0069190
<|start|><|system|> Tool definitions: {"name": "convert_units", "description": "Convert a quantity between units.", "parameters": {"type": "object", "properties": {"value": {"type": "number"}, "from_unit": {"type": "string"}, "to_unit": {"type": "string"}}, "required": ["value", "from_unit", "to_unit"]}} {"name": "comp...
chat
[ { "role": "system", "content": "Tool definitions:\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, \"to_unit\": {\"type\": \"string\"}}, \"r...
nlprog_det
setting
original
null
deterministic
[]
[]
470
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0069191
<|start|><|user|> 2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?<|eot|> <|assistant|> ```python award = 96000 fee = award * 25 / 100 # 24000.0 remaining = award - fee # 72000.0 per_client = remaining / 2 # 36000.0 print(f"{per_client:.2f}") ``` Console outp...
chat
[ { "role": "user", "content": "2 clients win $96,000. The lawyer takes 25%, and the rest is split equally. How much does each client get?" }, { "role": "assistant", "content": "```python\naward = 96000\nfee = award * 25 / 100 # 24000.0\nremaining = award - fee # 72000.0\nper_client = remaining ...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "36000.00", "printed": "36000.00", "notation": null}
nlprog_det-setting-0069192
Split $1,510 between Rosa and Nikhil in the ratio 2 to 3. What is Rosa's share? Code: ```python total = 1510 parts_a = 2 parts_b = 3 share_a = total * parts_a // (parts_a + parts_b) # 604 print(share_a) ``` # output: 604 Rosa gets $604.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "604", "printed": "604", "notation": null}
nlprog_det-setting-0069193
<|start|><|user|> A settlement of $84,000 is split equally among 6 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 84000 parties = 6 share = settlement // parties # 14000 print(share) ``` Execution result — 14000 Each share is $14,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $84,000 is split equally among 6 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 84000\nparties = 6\nshare = settlement // parties # 14000\nprint(share)\n```\nExecution result — 14000\n\nEach...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "14000", "printed": "14000", "notation": null}
nlprog_det-setting-0069194
What is the total rent on a 36-month lease at $2,100 a month? We write it as a program: ```python monthly_rent = 2100 months = 36 total = monthly_rent * months print(total) ``` # console output: 75600 In total, $75,600 is paid.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0069195
A party has 30 days to respond to a motion served on August 5, 2026, with 3 days added because service was by mail. When is the response due? It is due September 7, 2026.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
44
{"gold": "2026-09-07", "printed": "2026-09-07", "notation": null}
nlprog_det-setting-0069196
<|start|><|system|> Respond clearly and to the point.<|eot|> <|user|> Sara buys 4 boxes of 25 mugs each and gives away 16 mugs. How many mugs are left?<|eot|> <|assistant|> boxes = 4 per_box = 25 given_away = 16 left = boxes * per_box - given_away # 84 print(left) The program outputs 84. 84 mugs a...
chat
[ { "role": "system", "content": "Respond clearly and to the point." }, { "role": "user", "content": "Sara buys 4 boxes of 25 mugs each and gives away 16 mugs. How many mugs are left?" }, { "role": "assistant", "content": " boxes = 4\n per_box = 25\n given_away = 16\n left ...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "84", "printed": "84", "notation": null}
nlprog_det-setting-0069197
Scale 450 g of oats from 6 servings to 4 servings. Python: ```python grams = 450 serves = 6 needed_for = 4 scaled = grams * needed_for // serves print(scaled) ``` # program output: 300 300 grams of oats are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "300", "printed": "300", "notation": null}
nlprog_det-setting-0069198
Divide 124 items among 6 groups as evenly as possible with equal groups. How many per group, and how many remain? Program: total = 124 groups = 6 per_group, remainder = divmod(total, groups) print(f"{per_group} each, {remainder} left over") Printed result — 20 each, 4 left over 20 each, 4 left over.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "20 each, 4 left over", "printed": "20 each, 4 left over", "notation": null}
nlprog_det-setting-0069199
<|start|><|system|> You are a careful assistant.<|eot|> <|user|> A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 118-page copy cost?<|eot|> <|assistant|> The copy costs $32.00.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a careful assistant." }, { "role": "user", "content": "A court charges $5 per request plus $0.25 per page after the first 10 pages. What does a 118-page copy cost?" }, { "role": "assistant", "content": "The copy costs $32.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
58
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0069200
<|start|><|user|> Convert -5 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Execution prints 23. It equals 23 degrees Fahrenheit.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Convert -5 °C to Fahrenheit." }, { "role": "assistant", "content": "```python\ncelsius = -5\nfahrenheit = celsius * 9 / 5 + 32 # 23.0\nprint(round(fahrenheit))\n```\nExecution prints 23.\n\nIt equals 23 degrees Fahrenheit." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069201
With 10 rows of 15 chairs and 36 empty chairs, how many chairs are taken? Programmatically: ```python rows = 10 per_row = 15 empty = 36 seated = rows * per_row - empty # 114 print(seated) ``` stdout: 114 114 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "114", "printed": "114", "notation": null}
nlprog_det-setting-0069202
<|start|><|user|> How many units at $40 each (variable cost $30) cover $6,000 of fixed costs?<|eot|> <|assistant|> ```python import math fixed = 6000 price = 40 variable = 30 units = math.ceil(fixed / (price - variable)) # 600 print(units) ``` Console: 600 Break-even is 600 units.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many units at $40 each (variable cost $30) cover $6,000 of fixed costs?" }, { "role": "assistant", "content": "```python\nimport math\nfixed = 6000\nprice = 40\nvariable = 30\nunits = math.ceil(fixed / (price - variable)) # 600\nprint(units)\n```\nConsole:\n600...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "600", "printed": "600", "notation": null}
nlprog_det-setting-0069203
<|start|><|user|> A 20 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?<|eot|> <|assistant|> ```python import math length = 20 width = 7 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 35 print(tiles) ``` Result: 35 35 tiles are needed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 20 × 7 foot patio is tiled with 2 ft × 2 ft tiles. How many tiles, rounded up?" }, { "role": "assistant", "content": "```python\nimport math\nlength = 20\nwidth = 7\ntile = 2\ntiles = math.ceil(length * width / (tile * tile)) # 35\nprint(tiles)\n```\nResult:\n35\...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "35", "printed": "35", "notation": null}
nlprog_det-setting-0069204
<|start|><|user|> A 24-month warranty starts on June 2, 2021. On what date does it end?<|eot|> <|assistant|> ```python from datetime import date start = date(2021, 6, 2) months = 24 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()...
chat
[ { "role": "user", "content": "A 24-month warranty starts on June 2, 2021. On what date does it end?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nstart = date(2021, 6, 2)\nmonths = 24\nyears, month_index = divmod(start.month - 1 + months, 12)\nend = date(start.year...
nlprog_det
setting
original
null
deterministic
[]
[]
149
{"gold": "2023-06-02", "printed": "2023-06-02", "notation": null}
nlprog_det-setting-0069205
Counting only Monday through Friday, how many business days are there after February 6, 2019 through March 16, 2019? ```python from datetime import date, timedelta start = date(2019, 2, 6) end = date(2019, 3, 16) 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
[]
[]
150
{"gold": "27", "printed": "27", "notation": null}
nlprog_det-setting-0069206
Monthly rent is $1,800. A tenant moves in with 5 days left in a 31-day month. What is the prorated rent? We can compute it in Python. ```python rent = 1800 days_in_month = 31 days_occupied = 5 prorated = rent * days_occupied / days_in_month # 290.3225806451613 print(f"{prorated:.2f}") ``` What it prints — 290.32 The...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
150
{"gold": "290.32", "printed": "290.32", "notation": null}
nlprog_det-setting-0069208
Convert 4 h 30 min (the length of a film) to minutes. We write it as a program: ```python hours = 4 minutes = 30 total_minutes = hours * 60 + minutes # 270 print(total_minutes) ``` When run, it prints 270, as expected. The film lasted 270 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "270", "printed": "270", "notation": null}
nlprog_det-setting-0069209
Find the mean of these test scores: 85, 62, 74, 97, 94, 60 and 74. Python makes this quick: ```python scores = [85, 62, 74, 97, 94, 60, 74] average = sum(scores) // len(scores) # 78 print(average) ``` The run gives 78. The average score is 78.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "78", "printed": "78", "notation": null}
nlprog_det-setting-0069210
<|start|><|system|> Show working only when it helps.<|eot|> <|user|> 2 books come back 27 days late, at $0.15 a day each. What is the fine?<|eot|> <|assistant|> per_day = 0.15 days_late = 27 books = 2 fine = per_day * days_late * books # 8.1 print(f"{fine:.2f}") Run result = 8.10 The fine is $8.10...
chat
[ { "role": "system", "content": "Show working only when it helps." }, { "role": "user", "content": "2 books come back 27 days late, at $0.15 a day each. What is the fine?" }, { "role": "assistant", "content": " per_day = 0.15\n days_late = 27\n books = 2\n fine = per_day *...
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "8.10", "printed": "8.10", "notation": null}
nlprog_det-setting-0069211
<|start|><|user|> Goods bought on May 27, 2020 carry a 6-month warranty. When does it expire?<|eot|> <|assistant|> from datetime import date start = date(2020, 5, 27) months = 6 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) p...
chat
[ { "role": "user", "content": "Goods bought on May 27, 2020 carry a 6-month warranty. When does it expire?" }, { "role": "assistant", "content": " from datetime import date\n start = date(2020, 5, 27)\n months = 6\n years, month_index = divmod(start.month - 1 + months, 12)\n end = ...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "2020-11-27", "printed": "2020-11-27", "notation": null}
nlprog_det-setting-0069212
Convert 1 h 43 min (the length of a deposition) to minutes. Computing it: ```python hours = 1 minutes = 43 total_minutes = hours * 60 + minutes # 103 print(total_minutes) ``` Run result — 103 The deposition lasted 103 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
83
{"gold": "103", "printed": "103", "notation": null}
nlprog_det-setting-0069213
At $18.33 an hour, what does 12 hours of work pay? Computation in Python: ```python rate = 18.33 hours = 12 earnings = rate * hours # 219.95999999999998 print(f"{earnings:.2f}") ``` Interpreter output: 219.96 That earns $219.96.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "219.96", "printed": "219.96", "notation": null}
nlprog_det-setting-0069215
<|start|><|user|> A trial runs from September 8, 2021 to September 12, 2021, counting both days. How many calendar days is that?<|eot|> <|assistant|> ```python from datetime import date first = date(2021, 9, 8) # datetime.date(2021, 9, 8) last = date(2021, 9, 12) # datetime.date(2021, 9, 12) days = (last - first).day...
chat
[ { "role": "user", "content": "A trial runs from September 8, 2021 to September 12, 2021, counting both days. How many calendar days is that?" }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2021, 9, 8) # datetime.date(2021, 9, 8)\nlast = date(2021, 9, 12...
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "5", "printed": "5", "notation": null}
nlprog_det-setting-0069216
$1,000 is invested at 2% compounded yearly. What is it worth after 3 years? One way, in code: ```python principal = 1000 rate = 2 / 100 # 0.02 years = 3 value = principal * (1 + rate) ** years # 1061.208 print(f"{value:.2f}") ``` Executing it gives 1061.21, as expected. It is worth $1,061.21.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "1061.21", "printed": "1061.21", "notation": null}
nlprog_det-setting-0069217
A penalty of $25 a day accrues, capped at $1,000. What is owed after 11 days? The fine is $275.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
37
{"gold": "275", "printed": "275", "notation": null}
nlprog_det-setting-0069220
<|start|><|user|> 3 boxes hold 12 flash drives each. After 17 are handed out, how many are left?<|eot|> <|assistant|> ```python boxes = 3 per_box = 12 given_away = 17 left = boxes * per_box - given_away # 19 print(left) ``` Execution prints 19. That leaves 19 flash drives.<|eot|> <|end|>
chat
[ { "role": "user", "content": "3 boxes hold 12 flash drives each. After 17 are handed out, how many are left?" }, { "role": "assistant", "content": "```python\nboxes = 3\nper_box = 12\ngiven_away = 17\nleft = boxes * per_box - given_away # 19\nprint(left)\n```\nExecution prints 19.\n\nThat leave...
nlprog_det
setting
original
null
deterministic
[]
[]
100
{"gold": "19", "printed": "19", "notation": null}
nlprog_det-setting-0069221
With 10% off, what does a $60 desk lamp cost? Set it up in Python: ```python price = 60 discount = 10 / 100 # 0.1 sale_price = price * (1 - discount) # 54.0 print(f"{sale_price:.2f}") ``` Run it and it prints: 54.00 The sale price is $54.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "54.00", "printed": "54.00", "notation": null}
nlprog_det-setting-0069223
<|start|><|user|> A settlement of $36,000 is split equally among 2 parties. How much does each party receive?<|eot|> <|assistant|> ```python settlement = 36000 parties = 2 share = settlement // parties # 18000 print(share) ``` Printed: 18000 Each share is $18,000.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A settlement of $36,000 is split equally among 2 parties. How much does each party receive?" }, { "role": "assistant", "content": "```python\nsettlement = 36000\nparties = 2\nshare = settlement // parties # 18000\nprint(share)\n```\nPrinted:\n18000\n\nEach share is...
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "18000", "printed": "18000", "notation": null}
nlprog_det-setting-0069224
Convert 38 km to meters. Computing it: ```python km = 38 meters = km * 1000 # 38000 print(round(meters)) ``` Running this gives: 38000 That is 38,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
76
{"gold": "38000", "printed": "38000", "notation": null}
nlprog_det-setting-0069225
<|start|><|user|> With 15% off, what does a $120 filing cabinet cost?<|eot|> <|assistant|> ```python price = 120 discount = 15 / 100 # 0.15 sale_price = price * (1 - discount) # 102.0 print(f"{sale_price:.2f}") ``` Out: 102.00 The sale price is $102.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 15% off, what does a $120 filing cabinet cost?" }, { "role": "assistant", "content": "```python\nprice = 120\ndiscount = 15 / 100 # 0.15\nsale_price = price * (1 - discount) # 102.0\nprint(f\"{sale_price:.2f}\")\n```\nOut:\n102.00\n\nThe sale price is $102.00...
nlprog_det
setting
original
null
deterministic
[]
[]
105
{"gold": "102.00", "printed": "102.00", "notation": null}
nlprog_det-setting-0069226
One can of paint covers 350 square feet. How many cans are needed for 1054 square feet of wall? Python: ```python import math area = 1054 coverage = 350 cans = math.ceil(area / coverage) # 4 print(cans) ``` Out = 4 Buy 4 cans.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "4", "printed": "4", "notation": null}
nlprog_det-setting-0069227
<|start|><|user|> With 30 rows of 21 chairs and 36 empty chairs, how many chairs are taken?<|eot|> <|assistant|> ```python rows = 30 per_row = 21 empty = 36 seated = rows * per_row - empty # 594 print(seated) ``` Run result = 594 594 seats are taken.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 30 rows of 21 chairs and 36 empty chairs, how many chairs are taken?" }, { "role": "assistant", "content": "```python\nrows = 30\nper_row = 21\nempty = 36\nseated = rows * per_row - empty # 594\nprint(seated)\n```\nRun result = 594\n\n594 seats are taken." }...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "594", "printed": "594", "notation": null}
nlprog_det-setting-0069228
The bridge was finished in 2005. How many years had passed by 2013? Here is the program. ```python start_year = 2005 end_year = 2013 print(end_year - start_year) ``` When run, it prints 8. That is 8 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0069229
A shift runs from 7:33 AM to 10:39 AM. How long is it in minutes? Computation in Python: ```python start = 7 * 60 + 33 # 453 end = 10 * 60 + 39 # 639 print(end - start) ``` Printed: 186 186 minutes pass.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "186", "printed": "186", "notation": null}
nlprog_det-setting-0069230
<|start|><|user|> 83 copies of a 18-page packet are printed at $0.12 per page. What is the cost?<|eot|> <|assistant|> ```python pages = 18 copies = 83 cost_per_page = 0.12 cost = pages * copies * cost_per_page # 179.28 print(f"{cost:.2f}") ``` The program prints 179.28, as expected. Printing costs $179.28.<|eot|> <|e...
chat
[ { "role": "user", "content": "83 copies of a 18-page packet are printed at $0.12 per page. What is the cost?" }, { "role": "assistant", "content": "```python\npages = 18\ncopies = 83\ncost_per_page = 0.12\ncost = pages * copies * cost_per_page # 179.28\nprint(f\"{cost:.2f}\")\n```\nThe program ...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "179.28", "printed": "179.28", "notation": null}
nlprog_det-setting-0069231
Counting only Monday through Friday, how many business days are there after July 27, 2025 through August 16, 2025? Python: from datetime import date, timedelta start = date(2025, 7, 27) end = date(2025, 8, 16) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0069232
<|start|><|user|> A 266-page report must be reviewed in 19 days. How many pages a day is that, evenly?<|eot|> <|assistant|> ```python pages = 266 days = 19 per_day = pages // days # 14 print(per_day) ``` Executed, it shows 14. 14 pages a day.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 266-page report must be reviewed in 19 days. How many pages a day is that, evenly?" }, { "role": "assistant", "content": "```python\npages = 266\ndays = 19\nper_day = pages // days # 14\nprint(per_day)\n```\nExecuted, it shows 14.\n\n14 pages a day." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "14", "printed": "14", "notation": null}
nlprog_det-setting-0069234
Papers were served by mail on January 4, 2028. A response is due 28 days after service, plus 3 extra days for mailing. What is the due date? Python, step by step: ```python from datetime import date, timedelta served = date(2028, 1, 4) # datetime.date(2028, 1, 4) response_days = 28 mail_days = 3 due = served + timede...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
183
{"gold": "2028-02-04", "printed": "2028-02-04", "notation": null}
nlprog_det-setting-0069235
How many units at $20 each (variable cost $14) cover $4,000 of fixed costs? Break-even is 667 units.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
38
{"gold": "667", "printed": "667", "notation": null}
nlprog_det-setting-0069236
Convert -5 °C to Fahrenheit. Here is a short program for it. ```python celsius = -5 fahrenheit = celsius * 9 / 5 + 32 # 23.0 print(round(fahrenheit)) ``` Result: 23 That is 23 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "23", "printed": "23", "notation": null}
nlprog_det-setting-0069237
A lawyer's fee is 30% of a $150,000 recovery. How large is the fee? The fee is $45,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "45000.00", "printed": "45000.00", "notation": null}
nlprog_det-setting-0069238
7 swims at 200 calories each burn how many calories in total? Python: per_session = 200 sessions = 7 total = per_session * sessions # 1400 print(total) Output = 1400 That burns 1400 calories.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
75
{"gold": "1400", "printed": "1400", "notation": null}
nlprog_det-setting-0069239
Marek earns a 3% commission on $27,888 of sales. What is the commission? Python code: ```python sales = 27888 rate = 3 / 100 # 0.03 commission = sales * rate # 836.64 print(f"{commission:.2f}") ``` The program prints: 836.64 The commission is $836.64.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "836.64", "printed": "836.64", "notation": null}
nlprog_det-setting-0069240
From 2020 to 2057, how many years is that? Script: start_year = 2020 end_year = 2057 print(end_year - start_year) stdout: 37 37 years.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "37", "printed": "37", "notation": null}
nlprog_det-setting-0069241
How many 2-foot square tiles cover a 9 ft by 15 ft floor (round up)? Python version: ```python import math length = 9 width = 15 tile = 2 tiles = math.ceil(length * width / (tile * tile)) # 34 print(tiles) ``` The script prints 34. 34 tiles are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0069243
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Express 147 hours in days and hours.<|eot|> <|assistant|> ```python hours = 147 days, rest = divmod(hours, 24) print(f"{days} days and {rest} hours") ``` (Result: 6 days and 3 hours) That is 6 days and 3 hours.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Express 147 hours in days and hours." }, { "role": "assistant", "content": "```python\nhours = 147\ndays, rest = divmod(hours, 24)\nprint(f\"{days} days and {rest} hours\")\n```\n(Resul...
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "6 days and 3 hours", "printed": "6 days and 3 hours", "notation": null}
nlprog_det-setting-0069244
The landlord deducts $85 from a $1,000 deposit. What is returned to the tenant? Python code: ```python deposit = 1000 deductions = [85] refund = deposit - sum(deductions) # 915 print(refund) ``` stdout: 915 $915 is returned.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "915", "printed": "915", "notation": null}
nlprog_det-setting-0069245
After a 40% fee is taken from a $48,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share? Computing it: ```python award = 48000 fee = award * 40 / 100 # 19200.0 remaining = award - fee # 28800.0 per_client = remaining / 3 # 9600.0 print(f"{per_client:.2f}") ``` Program output: 9600...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "9600.00", "printed": "9600.00", "notation": null}
nlprog_det-setting-0069246
A lease runs for 36 months at $2,100 per month. How much rent is paid over the whole term? Python does the arithmetic: ```python monthly_rent = 2100 months = 36 total = monthly_rent * months # 75600 print(total) ``` Printed: 75600 The rent over the term is $75,600.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "75600", "printed": "75600", "notation": null}
nlprog_det-setting-0069247
<|start|><|user|> A garage charges $5 an hour, never more than $18 a day. How much for 10 hours?<|eot|> <|assistant|> ```python rate = 5 hours = 10 daily_max = 18 cost = min(rate * hours, daily_max) # 18 print(cost) ``` Output: 18 The charge is $18.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A garage charges $5 an hour, never more than $18 a day. How much for 10 hours?" }, { "role": "assistant", "content": "```python\nrate = 5\nhours = 10\ndaily_max = 18\ncost = min(rate * hours, daily_max) # 18\nprint(cost)\n```\nOutput: 18\n\nThe charge is $18." } ...
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "18", "printed": "18", "notation": null}
nlprog_det-setting-0069248
What average speed covers 286 miles in 1 hours? ```python distance = 286 hours = 1 speed = distance / hours # 286.0 print(round(speed)) ``` Console output: 286 It averages 286 miles per hour.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "286", "printed": "286", "notation": null}
nlprog_det-setting-0069249
<|start|><|system|> You are a puzzle helper.<|eot|> <|user|> Counting the first and last day, how many days are there from July 2, 2018 through July 9, 2018?<|eot|> <|assistant|> 8 calendar days.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are a puzzle helper." }, { "role": "user", "content": "Counting the first and last day, how many days are there from July 2, 2018 through July 9, 2018?" }, { "role": "assistant", "content": "8 calendar days." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
51
{"gold": "8", "printed": "8", "notation": null}
nlprog_det-setting-0069250
<|start|><|system|> You check calculations for an accounting team.<|eot|> <|user|> Convert 20 °C to Fahrenheit.<|eot|> <|assistant|> ```python celsius = 20 fahrenheit = celsius * 9 / 5 + 32 # 68.0 print(round(fahrenheit)) ``` Shell output — 68 That is 68 °F.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You check calculations for an accounting team." }, { "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```\nShel...
nlprog_det
setting
original
null
deterministic
[]
[]
98
{"gold": "68", "printed": "68", "notation": null}
nlprog_det-setting-0069251
At 40 miles per hour, how many minutes does a 40-mile trip take? One way, in code: ```python distance = 40 speed = 40 minutes = distance / speed * 60 # 60.0 print(round(minutes)) ``` Running it prints 60, as expected. 60 minutes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "60", "printed": "60", "notation": null}
nlprog_det-setting-0069253
How many days are there from March 23, 2026 to April 26, 2027? Let's compute it with Python. ```python from datetime import date first = date(2026, 3, 23) # datetime.date(2026, 3, 23) second = date(2027, 4, 26) # datetime.date(2027, 4, 26) print((second - first).days) ``` Python prints 399, as expected. There are 3...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
140
{"gold": "399", "printed": "399", "notation": null}
nlprog_det-setting-0069254
Sara earns a 3% commission on $6,481 of sales. What is the commission? Code: ```python sales = 6481 rate = 3 / 100 # 0.03 commission = sales * rate # 194.43 print(f"{commission:.2f}") ``` This prints 194.43, as expected. Sara earns $194.43.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "194.43", "printed": "194.43", "notation": null}
nlprog_det-setting-0069255
<|start|><|user|> With 40% off, what does a $40 kettle cost?<|eot|> <|assistant|> ```python price = 40 discount = 40 / 100 # 0.4 sale_price = price * (1 - discount) # 24.0 print(f"{sale_price:.2f}") ``` The interpreter prints: 24.00 The sale price is $24.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "With 40% off, what does a $40 kettle cost?" }, { "role": "assistant", "content": "```python\nprice = 40\ndiscount = 40 / 100 # 0.4\nsale_price = price * (1 - discount) # 24.0\nprint(f\"{sale_price:.2f}\")\n```\nThe interpreter prints: 24.00\n\nThe sale price is $2...
nlprog_det
setting
original
null
deterministic
[]
[]
109
{"gold": "24.00", "printed": "24.00", "notation": null}
nlprog_det-setting-0069256
From a $5,000 retainer, 11 hours at $250/hour have been drawn. What remains? Let the code do the arithmetic: ```python retainer = 5000 hours = 11 rate = 250 left = retainer - hours * rate # 2250 print(left) ``` Python prints: 2250 The remaining balance is $2,250.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2250", "printed": "2250", "notation": null}
nlprog_det-setting-0069258
<|start|><|system|> You may call the tools below. [{"name": "python", "description": "Executes Python code and returns stdout.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}, {"name": "convert_units", "description": "Convert a q...
chat
[ { "role": "system", "content": "You may call the tools below.\n[{\"name\": \"python\", \"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
[]
[]
323
{"gold": "6 days and 12 hours", "printed": "6 days and 12 hours", "notation": null}
nlprog_det-setting-0069259
<|start|><|user|> $2,000 is invested at 4% compounded yearly. What is it worth after 3 years?<|eot|> <|assistant|> ```python principal = 2000 rate = 4 / 100 # 0.04 years = 3 value = principal * (1 + rate) ** years # 2249.728 print(f"{value:.2f}") ``` # out: 2249.73 The balance is $2,249.73.<|eot|> <|end|>
chat
[ { "role": "user", "content": "$2,000 is invested at 4% compounded yearly. What is it worth after 3 years?" }, { "role": "assistant", "content": "```python\nprincipal = 2000\nrate = 4 / 100 # 0.04\nyears = 3\nvalue = principal * (1 + rate) ** years # 2249.728\nprint(f\"{value:.2f}\")\n```\n# ou...
nlprog_det
setting
original
null
deterministic
[]
[]
119
{"gold": "2249.73", "printed": "2249.73", "notation": null}
nlprog_det-setting-0069260
After an initial $6,000, the remainder of a $12,000 grant is paid in 4 equal parts. What is each part? Program: ```python grant = 12000 up_front = 6000 installments = 4 each = (grant - up_front) / installments # 1500.0 print(f"{each:.2f}") ``` Python prints 1500.00, as expected. Each installment is $1,500.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
125
{"gold": "1500.00", "printed": "1500.00", "notation": null}
nlprog_det-setting-0069261
Notice was given on June 8, 2024. The notice period is 60 days. When does it run out? Here is the program. ```python from datetime import date, timedelta start = date(2024, 6, 8) # datetime.date(2024, 6, 8) end = start + timedelta(days=60) # datetime.date(2024, 8, 7) print(end.isoformat()) ``` # program output: 2024...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
142
{"gold": "2024-08-07", "printed": "2024-08-07", "notation": null}
nlprog_det-setting-0069263
4 claimants share a $524 settlement equally. What is each share? Each party receives $131.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
27
{"gold": "131", "printed": "131", "notation": null}
nlprog_det-setting-0069264
A $30,000 grant pays $3,000 up front and the rest in 4 equal installments. How large is each installment? Computing it: ```python grant = 30000 up_front = 3000 installments = 4 each = (grant - up_front) / installments # 6750.0 print(f"{each:.2f}") ``` This prints 6750.00. $6,750.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "6750.00", "printed": "6750.00", "notation": null}
nlprog_det-setting-0069266
Carmen's scores were 68, 84 and 61. What is the average score? As a program: ```python scores = [68, 84, 61] average = sum(scores) // len(scores) # 71 print(average) ``` Console output: 71 The mean is 71.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "71", "printed": "71", "notation": null}
nlprog_det-setting-0069267
A library charges $0.20 per book per day late. What is the fine for 3 books that are 29 days late? A Python solution: ```python per_day = 0.2 days_late = 29 books = 3 fine = per_day * days_late * books # 17.400000000000002 print(f"{fine:.2f}") ``` stdout = 17.40 The fine is $17.40.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "17.40", "printed": "17.40", "notation": null}
nlprog_det-setting-0069268
<|start|><|user|> After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 30000 fee = award * 25 / 100 # 7500.0 remaining = award - fee # 22500.0 per_client = remaining / 3 # 7500.0 print(f"{per_client:.2f}") `...
chat
[ { "role": "user", "content": "After a 25% fee is taken from a $30,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 30000\nfee = award * 25 / 100 # 7500.0\nremaining = award - fee # 22500.0\nper_cli...
nlprog_det
setting
original
null
deterministic
[]
[]
137
{"gold": "7500.00", "printed": "7500.00", "notation": null}
nlprog_det-setting-0069269
Convert 7,464 USD to CAD at 1 USD = 1.27 CAD. One way, in code: ```python amount = 7464 rate = 1.27 converted = amount * rate # 9479.28 print(f"{converted:.2f}") ``` It prints 9479.28, as expected. It converts to 9,479.28 CAD.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
112
{"gold": "9479.28", "printed": "9479.28", "notation": null}
nlprog_det-setting-0069270
<|start|><|user|> Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?<|eot|> <|assistant|> ```python cost = 30000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 5600.0 print(f"{per_year:.2f}") ``` That prints 5600.00. $...
chat
[ { "role": "user", "content": "Equipment costs $30,000, has a salvage value of $2,000, and a useful life of 5 years. What is the straight-line depreciation per year?" }, { "role": "assistant", "content": "```python\ncost = 30000\nsalvage = 2000\nyears = 5\nper_year = (cost - salvage) / years # 5...
nlprog_det
setting
original
null
deterministic
[]
[]
129
{"gold": "5600.00", "printed": "5600.00", "notation": null}
nlprog_det-setting-0069271
Shipping costs $5 plus $2.50 per pound. What does a 14-pound parcel cost to ship? Python: ```python base = 5 per_pound = 2.5 weight = 14 cost = base + per_pound * weight # 40.0 print(f"{cost:.2f}") ``` # output: 40.00 Shipping costs $40.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
108
{"gold": "40.00", "printed": "40.00", "notation": null}
nlprog_det-setting-0069272
<|start|><|user|> A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?<|eot|> <|assistant|> ```python monthly = 9 yearly = 84 savings = monthly * 12 - yearly # 24 print(savings) ``` It outputs: 24 $24 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A service costs $9 a month or $84 a year. How much does the yearly plan save over 12 monthly payments?" }, { "role": "assistant", "content": "```python\nmonthly = 9\nyearly = 84\nsavings = monthly * 12 - yearly # 24\nprint(savings)\n```\nIt outputs: 24\n\n$24 is sa...
nlprog_det
setting
original
null
deterministic
[]
[]
88
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0069273
2 friends split a $240 bill plus a 20% tip evenly. How much does each pay? Computing it: ```python bill = 240 tip_rate = 20 / 100 # 0.2 people = 2 each = bill * (1 + tip_rate) / people # 144.0 print(f"{each:.2f}") ``` Printed = 144.00 Each person pays $144.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "144.00", "printed": "144.00", "notation": null}
nlprog_det-setting-0069274
From a $7,500 retainer, 9 hours at $275/hour have been drawn. What remains? $5,025 of the retainer is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
39
{"gold": "5025", "printed": "5025", "notation": null}
nlprog_det-setting-0069275
A storeroom has 1467 pens. The office uses 33 a day. How many are left after 13 days? Python makes this quick: ```python stock = 1467 per_day = 33 days = 13 left = stock - per_day * days # 1038 print(left) ``` Result: 1038 1038 pens are left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
99
{"gold": "1038", "printed": "1038", "notation": null}