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-0081088
<|start|><|user|> What does $2,000 grow to in 2 years at 5% annual compounding?<|eot|> <|assistant|> principal = 2000 rate = 5 / 100 # 0.05 years = 2 value = principal * (1 + rate) ** years # 2205.0 print(f"{value:.2f}") Running this gives 2205.00. It is worth $2,205.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What does $2,000 grow to in 2 years at 5% annual compounding?" }, { "role": "assistant", "content": " principal = 2000\n rate = 5 / 100 # 0.05\n years = 2\n value = principal * (1 + rate) ** years # 2205.0\n print(f\"{value:.2f}\")\nRunning this giv...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "2205.00", "printed": "2205.00", "notation": null}
nlprog_det-setting-0081090
<|start|><|user|> Attendance was 30 out of 40. Express it as a percent.<|eot|> <|assistant|> ```python present = 30 total = 40 percent = present / total * 100 # 75.0 print(round(percent, 1)) ``` Program output — 75.0 Attendance was 75.0%.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Attendance was 30 out of 40. Express it as a percent." }, { "role": "assistant", "content": "```python\npresent = 30\ntotal = 40\npercent = present / total * 100 # 75.0\nprint(round(percent, 1))\n```\nProgram output — 75.0\n\nAttendance was 75.0%." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "75.0", "printed": "75.0", "notation": null}
nlprog_det-setting-0081091
If a 75-minute shift begins at 4:30 PM, what time does it finish? It ends at 5:45 PM.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "5:45 PM", "printed": "5:45 PM", "notation": null}
nlprog_det-setting-0081092
Convert 35 °C to Fahrenheit. Programmatically: ```python celsius = 35 fahrenheit = celsius * 9 / 5 + 32 # 95.0 print(round(fahrenheit)) ``` Printed = 95 That is 95 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
85
{"gold": "95", "printed": "95", "notation": null}
nlprog_det-setting-0081093
What is 10 degrees Celsius in Fahrenheit? That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
25
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081094
<|start|><|system|> Be brief and correct.<|eot|> <|user|> Convert 774 USD to EUR at 1 USD = 1.27 EUR.<|eot|> <|assistant|> ```python amount = 774 rate = 1.27 converted = amount * rate # 982.98 print(f"{converted:.2f}") ``` Shell output: 982.98 It converts to 982.98 EUR.<|eot|> <|end|>
chat
[ { "role": "system", "content": "Be brief and correct." }, { "role": "user", "content": "Convert 774 USD to EUR at 1 USD = 1.27 EUR." }, { "role": "assistant", "content": "```python\namount = 774\nrate = 1.27\nconverted = amount * rate # 982.98\nprint(f\"{converted:.2f}\")\n```\nShel...
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "982.98", "printed": "982.98", "notation": null}
nlprog_det-setting-0081095
What average speed covers 368 miles in 4 hours? A few lines of Python do it: ```python distance = 368 hours = 4 speed = distance / hours # 92.0 print(round(speed)) ``` Execution prints: 92 The average speed is 92 mph.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
86
{"gold": "92", "printed": "92", "notation": null}
nlprog_det-setting-0081096
How much sales tax is charged on a $88.39 purchase at 5%? Python, step by step: price = 88.39 tax_rate = 5 / 100 # 0.05 tax = price * tax_rate # 4.4195 print(f"{tax:.2f}") (Execution result: 4.42) The tax is $4.42.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "4.42", "printed": "4.42", "notation": null}
nlprog_det-setting-0081097
<|start|><|system|> Keep explanations short.<|eot|> <|user|> With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal.<|eot|> <|assistant|> ```python revenue = 36500 costs = 36000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 1.36986301369863 print(round...
chat
[ { "role": "system", "content": "Keep explanations short." }, { "role": "user", "content": "With $36,000 in costs and $36,500 in revenue, what percent of revenue is profit? Round to one decimal." }, { "role": "assistant", "content": "```python\nrevenue = 36500\ncosts = 36000\nprofit =...
nlprog_det
setting
original
null
deterministic
[]
[]
130
{"gold": "1.4", "printed": "1.4", "notation": null}
nlprog_det-setting-0081098
<|start|><|user|> A penalty of $100 a day accrues, capped at $1,000. What is owed after 15 days?<|eot|> <|assistant|> ```python per_day = 100 days = 15 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` (Output: 1000) $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $100 a day accrues, capped at $1,000. What is owed after 15 days?" }, { "role": "assistant", "content": "```python\nper_day = 100\ndays = 15\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\n(Output: 1000)\n\n$1,000 is owed." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081099
Carmen's scores were 93, 68, 87, 97 and 50. What is the average score? Let's compute it with Python. scores = [93, 68, 87, 97, 50] average = sum(scores) // len(scores) # 79 print(average) stdout: 79 The average score is 79.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "79", "printed": "79", "notation": null}
nlprog_det-setting-0081100
Abel and Malik share $1,905 in the ratio 1:2. How much does Abel get? As Python: ```python total = 1905 parts_a = 1 parts_b = 2 share_a = total * parts_a // (parts_a + parts_b) # 635 print(share_a) ``` # printed: 635 Abel's share is $635.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "635", "printed": "635", "notation": null}
nlprog_det-setting-0081101
<|start|><|user|> A jacket costs $180. It is 30% off. What is the sale price?<|eot|> <|assistant|> It costs $126.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A jacket costs $180. It is 30% off. What is the sale price?" }, { "role": "assistant", "content": "It costs $126.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
36
{"gold": "126.00", "printed": "126.00", "notation": null}
nlprog_det-setting-0081102
An attorney bills 8 hours at $410 per hour. What is the bill? Python code: ```python hours = 8 rate = 410 bill = hours * rate # 3280 print(f"{bill:.2f}") ``` It prints 3280.00. That comes to $3,280.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
96
{"gold": "3280.00", "printed": "3280.00", "notation": null}
nlprog_det-setting-0081103
<|start|><|user|> A party has 14 days to respond to a motion served on July 12, 2021, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2021, 7, 12) response_days = 14 mail_days = 3 due = served + timedelta(days=res...
chat
[ { "role": "user", "content": "A party has 14 days to respond to a motion served on July 12, 2021, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2021, 7, 12)\nresponse_...
nlprog_det
setting
original
null
deterministic
[]
[]
146
{"gold": "2021-07-29", "printed": "2021-07-29", "notation": null}
nlprog_det-setting-0081104
<|start|><|user|> From 2021 to 2030, how many years is that?<|eot|> <|assistant|> ```python start_year = 2021 end_year = 2030 print(end_year - start_year) ``` Python prints: 9 That is 9 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "From 2021 to 2030, how many years is that?" }, { "role": "assistant", "content": "```python\nstart_year = 2021\nend_year = 2030\nprint(end_year - start_year)\n```\nPython prints: 9\n\nThat is 9 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
72
{"gold": "9", "printed": "9", "notation": null}
nlprog_det-setting-0081105
Printing costs 15 cents a page. What does it cost to print 148 copies of a 5-page handout? Let the code do the arithmetic: ```python pages = 5 copies = 148 cost_per_page = 0.15 cost = pages * copies * cost_per_page # 111.0 print(f"{cost:.2f}") ``` Printed result: 111.00 The job costs $111.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "111.00", "printed": "111.00", "notation": null}
nlprog_det-setting-0081106
A party has 30 days to respond to a motion served on September 15, 2018, with 3 days added because service was by mail. When is the response due? A Python solution: ```python from datetime import date, timedelta served = date(2018, 9, 15) # datetime.date(2018, 9, 15) response_days = 30 mail_days = 3 due = served + ti...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
176
{"gold": "2018-10-18", "printed": "2018-10-18", "notation": null}
nlprog_det-setting-0081107
Viktor earns a 2% commission on $35,017 of sales. What is the commission? A few lines of Python do it: ```python sales = 35017 rate = 2 / 100 # 0.02 commission = sales * rate # 700.34 print(f"{commission:.2f}") ``` Output of the run — 700.34 The commission is $700.34.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
113
{"gold": "700.34", "printed": "700.34", "notation": null}
nlprog_det-setting-0081108
<|start|><|system|> Give the answer first.<|eot|> <|user|> A hearing starts at 11:20 AM and lasts 50 minutes. When does it end?<|eot|> <|assistant|> ```python start = 11 * 60 + 20 end = start + 50 hour, minute = divmod(end, 60) print(f"{(hour - 1) % 12 + 1}:{minute:02d} {'AM' if hour < 12 else 'PM'}") ``` (Run result: ...
chat
[ { "role": "system", "content": "Give the answer first." }, { "role": "user", "content": "A hearing starts at 11:20 AM and lasts 50 minutes. When does it end?" }, { "role": "assistant", "content": "```python\nstart = 11 * 60 + 20\nend = start + 50\nhour, minute = divmod(end, 60)\nprin...
nlprog_det
setting
original
null
deterministic
[]
[]
139
{"gold": "12:10 PM", "printed": "12:10 PM", "notation": null}
nlprog_det-setting-0081109
A shift runs from 9:29 AM to 12:17 PM. How long is it in minutes? ```python start = 9 * 60 + 29 # 569 end = 12 * 60 + 17 # 737 print(end - start) ``` The program prints 168. It is 168 minutes long.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "168", "printed": "168", "notation": null}
nlprog_det-setting-0081110
<|start|><|user|> A party has 28 days to respond to a motion served on May 10, 2028, with 3 days added because service was by mail. When is the response due?<|eot|> <|assistant|> ```python from datetime import date, timedelta served = date(2028, 5, 10) # datetime.date(2028, 5, 10) response_days = 28 mail_days = 3 due ...
chat
[ { "role": "user", "content": "A party has 28 days to respond to a motion served on May 10, 2028, with 3 days added because service was by mail. When is the response due?" }, { "role": "assistant", "content": "```python\nfrom datetime import date, timedelta\nserved = date(2028, 5, 10) # datetime...
nlprog_det
setting
original
null
deterministic
[]
[]
181
{"gold": "2028-06-10", "printed": "2028-06-10", "notation": null}
nlprog_det-setting-0081111
<|start|><|system|> You are an assistant for a small office.<|eot|> <|user|> Find the mean of these test scores: 74, 69, 88 and 69.<|eot|> <|assistant|> ```python scores = [74, 69, 88, 69] average = sum(scores) // len(scores) # 75 print(average) ``` Program output: 75 The average score is 75.<|eot|> <|end|>
chat
[ { "role": "system", "content": "You are an assistant for a small office." }, { "role": "user", "content": "Find the mean of these test scores: 74, 69, 88 and 69." }, { "role": "assistant", "content": "```python\nscores = [74, 69, 88, 69]\naverage = sum(scores) // len(scores) # 75\np...
nlprog_det
setting
original
null
deterministic
[]
[]
102
{"gold": "75", "printed": "75", "notation": null}
nlprog_det-setting-0081112
<|start|><|user|> Starting from $20,000, the team spends $2,313, $1,239, $1,948. What remains?<|eot|> <|assistant|> ```python budget = 20000 expenses = [2313, 1239, 1948] left = budget - sum(expenses) # 14500 print(left) ``` Interpreter output: 14500 The remaining budget is $14,500.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Starting from $20,000, the team spends $2,313, $1,239, $1,948. What remains?" }, { "role": "assistant", "content": "```python\nbudget = 20000\nexpenses = [2313, 1239, 1948]\nleft = budget - sum(expenses) # 14500\nprint(left)\n```\nInterpreter output: 14500\n\nThe r...
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "14500", "printed": "14500", "notation": null}
nlprog_det-setting-0081113
3 clients win $96,000. The lawyer takes 40%, and the rest is split equally. How much does each client get? Set it up in Python: ```python award = 96000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` Execution prints 19200.00. Each share is $19,200.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "19200.00", "printed": "19200.00", "notation": null}
nlprog_det-setting-0081114
A 24-month warranty starts on March 19, 2019. On what date does it end? The warranty ends on March 19, 2021.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "2021-03-19", "printed": "2021-03-19", "notation": null}
nlprog_det-setting-0081115
Water costs $12 a month plus $4.75 for each 1,000 gallons over 0,000. What is owed for 6,000 gallons? Python, step by step: ```python base = 12 rate = 4.75 used = 6 free = 0 bill = base + rate * max(0, used - free) # 40.5 print(f"{bill:.2f}") ``` Printed: 40.50 $40.50 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "40.50", "printed": "40.50", "notation": null}
nlprog_det-setting-0081116
<|start|><|user|> Which is cheaper per unit: 8 for $13.76 (A) or 30 for $6.55 (B)?<|eot|> <|assistant|> B has the lower unit price.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Which is cheaper per unit: 8 for $13.76 (A) or 30 for $6.55 (B)?" }, { "role": "assistant", "content": "B has the lower unit price." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "B", "printed": "B", "notation": null}
nlprog_det-setting-0081117
<|start|><|user|> A car travels 530 miles in 2 hours. What is its average speed in miles per hour?<|eot|> <|assistant|> ```python distance = 530 hours = 2 speed = distance / hours # 265.0 print(round(speed)) ``` The program prints 265. It averages 265 miles per hour.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A car travels 530 miles in 2 hours. What is its average speed in miles per hour?" }, { "role": "assistant", "content": "```python\ndistance = 530\nhours = 2\nspeed = distance / hours # 265.0\nprint(round(speed))\n```\nThe program prints 265.\n\nIt averages 265 mile...
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "265", "printed": "265", "notation": null}
nlprog_det-setting-0081118
<|start|><|user|> A customer buys 6 badges at $29 each, 4 cables at $14 each, 6 water bottles at $26 each, 4 chairs at $23 each and pays with $500. How much change is due?<|eot|> <|assistant|> ```python items = [(6, 29), (4, 14), (6, 26), (4, 23)] total = sum(q * p for q, p in items) # 478 paid = 500 change = paid - t...
chat
[ { "role": "user", "content": "A customer buys 6 badges at $29 each, 4 cables at $14 each, 6 water bottles at $26 each, 4 chairs at $23 each and pays with $500. How much change is due?" }, { "role": "assistant", "content": "```python\nitems = [(6, 29), (4, 14), (6, 26), (4, 23)]\ntotal = sum(q * ...
nlprog_det
setting
original
null
deterministic
[]
[]
147
{"gold": "22", "printed": "22", "notation": null}
nlprog_det-setting-0081119
<|start|><|user|> Someone born January 4, 1989 turns how old by May 18, 2023? Give the age in whole years.<|eot|> <|assistant|> ```python from datetime import date born = date(1989, 1, 4) # datetime.date(1989, 1, 4) on = date(2023, 5, 18) # datetime.date(2023, 5, 18) age = on.year - born.year - ((on.month, on.day) < ...
chat
[ { "role": "user", "content": "Someone born January 4, 1989 turns how old by May 18, 2023? Give the age in whole years." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nborn = date(1989, 1, 4) # datetime.date(1989, 1, 4)\non = date(2023, 5, 18) # datetime.date(2023, ...
nlprog_det
setting
original
null
deterministic
[]
[]
155
{"gold": "34", "printed": "34", "notation": null}
nlprog_det-setting-0081120
Convert 10 °C to Fahrenheit. That is 50 °F.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
24
{"gold": "50", "printed": "50", "notation": null}
nlprog_det-setting-0081121
With 20 rows of 22 chairs and 32 empty chairs, how many chairs are taken? Coded up: ```python rows = 20 per_row = 22 empty = 32 seated = rows * per_row - empty # 408 print(seated) ``` (Output: 408) 408 people are seated.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
95
{"gold": "408", "printed": "408", "notation": null}
nlprog_det-setting-0081122
A claim accrued on August 8, 2024. The limitations period is 5 years. On what date does it expire? In code: ```python from datetime import date accrued = date(2024, 8, 8) # datetime.date(2024, 8, 8) years = 5 expires = accrued.replace(year=accrued.year + years) # datetime.date(2029, 8, 8) print(expires.isoformat()) ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
148
{"gold": "2029-08-08", "printed": "2029-08-08", "notation": null}
nlprog_det-setting-0081123
<|start|><|user|> After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> Each client gets $14,000.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "After a 30% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "Each client gets $14,000.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
49
{"gold": "14000.00", "printed": "14000.00", "notation": null}
nlprog_det-setting-0081124
<|start|><|user|> What does $10,000 grow to in 4 years at 5% annual compounding?<|eot|> <|assistant|> ```python principal = 10000 rate = 5 / 100 # 0.05 years = 4 value = principal * (1 + rate) ** years # 12155.062500000002 print(f"{value:.2f}") ``` The script prints 12155.06. The balance is $12,155.06.<|eot|> <|end|...
chat
[ { "role": "user", "content": "What does $10,000 grow to in 4 years at 5% annual compounding?" }, { "role": "assistant", "content": "```python\nprincipal = 10000\nrate = 5 / 100 # 0.05\nyears = 4\nvalue = principal * (1 + rate) ** years # 12155.062500000002\nprint(f\"{value:.2f}\")\n```\nThe sc...
nlprog_det
setting
original
null
deterministic
[]
[]
123
{"gold": "12155.06", "printed": "12155.06", "notation": null}
nlprog_det-setting-0081125
<|start|><|user|> A 240-mile drive at a steady 40 mph takes how many minutes?<|eot|> <|assistant|> 360 minutes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A 240-mile drive at a steady 40 mph takes how many minutes?" }, { "role": "assistant", "content": "360 minutes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
30
{"gold": "360", "printed": "360", "notation": null}
nlprog_det-setting-0081126
A 720-page report must be reviewed in 18 days. How many pages a day is that, evenly? Code: ```python pages = 720 days = 18 per_day = pages // days # 40 print(per_day) ``` # printed: 40 That is 40 pages per day.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "40", "printed": "40", "notation": null}
nlprog_det-setting-0081127
<|start|><|system|> You are a teaching assistant.<|eot|> <|user|> Buying 1 flash drives at $2 each, 5 sticky pads at $20 each, someone hands over $150. What change comes back?<|eot|> <|assistant|> ```python items = [(1, 2), (5, 20)] total = sum(q * p for q, p in items) # 102 paid = 150 change = paid - total # 48 prin...
chat
[ { "role": "system", "content": "You are a teaching assistant." }, { "role": "user", "content": "Buying 1 flash drives at $2 each, 5 sticky pads at $20 each, someone hands over $150. What change comes back?" }, { "role": "assistant", "content": "```python\nitems = [(1, 2), (5, 20)]\nt...
nlprog_det
setting
original
null
deterministic
[]
[]
132
{"gold": "48", "printed": "48", "notation": null}
nlprog_det-setting-0081128
Copies cost $10 plus $0.10 for each page beyond 0. How much for 113 pages? The total is $21.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
33
{"gold": "21.30", "printed": "21.30", "notation": null}
nlprog_det-setting-0081129
<|start|><|user|> What commission does Ana make on $56,549 in sales at 3%?<|eot|> <|assistant|> ```python sales = 56549 rate = 3 / 100 # 0.03 commission = sales * rate # 1696.47 print(f"{commission:.2f}") ``` The program outputs: 1696.47 Ana earns $1,696.47.<|eot|> <|end|>
chat
[ { "role": "user", "content": "What commission does Ana make on $56,549 in sales at 3%?" }, { "role": "assistant", "content": "```python\nsales = 56549\nrate = 3 / 100 # 0.03\ncommission = sales * rate # 1696.47\nprint(f\"{commission:.2f}\")\n```\nThe program outputs: 1696.47\n\nAna earns $1,69...
nlprog_det
setting
original
null
deterministic
[]
[]
107
{"gold": "1696.47", "printed": "1696.47", "notation": null}
nlprog_det-setting-0081130
A $30,000 grant pays $0 up front and the rest in 12 equal installments. How large is each installment? $2,500.00 per installment.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "2500.00", "printed": "2500.00", "notation": null}
nlprog_det-setting-0081131
<|start|><|user|> Someone works 36 hours at $28.85 per hour. What are the earnings?<|eot|> <|assistant|> ```python rate = 28.85 hours = 36 earnings = rate * hours # 1038.6000000000001 print(f"{earnings:.2f}") ``` The script prints: 1038.60 That earns $1,038.60.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Someone works 36 hours at $28.85 per hour. What are the earnings?" }, { "role": "assistant", "content": "```python\nrate = 28.85\nhours = 36\nearnings = rate * hours # 1038.6000000000001\nprint(f\"{earnings:.2f}\")\n```\nThe script prints: 1038.60\n\nThat earns $1,...
nlprog_det
setting
original
null
deterministic
[]
[]
104
{"gold": "1038.60", "printed": "1038.60", "notation": null}
nlprog_det-setting-0081132
At a 7% tax rate, what is the tax on $162.17? Let the code do the arithmetic: price = 162.17 tax_rate = 7 / 100 # 0.07 tax = price * tax_rate # 11.3519 print(f"{tax:.2f}") Output: 11.35 $11.35 in tax.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "11.35", "printed": "11.35", "notation": null}
nlprog_det-setting-0081133
29 of 50 members attended. What percent attended? We can compute it in Python. ```python present = 29 total = 50 percent = present / total * 100 # 57.99999999999999 print(round(percent, 1)) ``` Execution result — 58.0 Attendance was 58.0%.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "58.0", "printed": "58.0", "notation": null}
nlprog_det-setting-0081134
<|start|><|user|> A penalty of $25 a day accrues, capped at $1,000. What is owed after 45 days?<|eot|> <|assistant|> ```python per_day = 25 days = 45 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) ``` What it prints — 1000 $1,000 is owed.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A penalty of $25 a day accrues, capped at $1,000. What is owed after 45 days?" }, { "role": "assistant", "content": "```python\nper_day = 25\ndays = 45\ncap = 1000\nfine = min(per_day * days, cap) # 1000\nprint(fine)\n```\nWhat it prints — 1000\n\n$1,000 is owed." ...
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081135
How many meters are in 17 kilometers? Programmatically: ```python km = 17 meters = km * 1000 # 17000 print(round(meters)) ``` # stdout: 17000 That is 17,000 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
77
{"gold": "17000", "printed": "17000", "notation": null}
nlprog_det-setting-0081136
A water bill is $18 plus $4.20 per thousand gallons beyond the first 2 thousand. What is the bill for 23 thousand gallons? Let's compute it with Python. ```python base = 18 rate = 4.2 used = 23 free = 2 bill = base + rate * max(0, used - free) # 106.2 print(f"{bill:.2f}") ``` This prints: 106.20 The bill is $106.20.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
128
{"gold": "106.20", "printed": "106.20", "notation": null}
nlprog_det-setting-0081137
Count the days between October 7, 2025 and August 5, 2026. Here's the code. ```python from datetime import date first = date(2025, 10, 7) second = date(2026, 8, 5) print((second - first).days) ``` It outputs: 302 It is 302 days.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
92
{"gold": "302", "printed": "302", "notation": null}
nlprog_det-setting-0081138
Rent of $2,200 goes up 3%. What is the new rent? Here is a short program for it. rent = 2200 increase = 3 / 100 # 0.03 new_rent = rent * (1 + increase) # 2266.0 print(f"{new_rent:.2f}") The program prints 2266.00, as expected. The new rent is $2,266.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "2266.00", "printed": "2266.00", "notation": null}
nlprog_det-setting-0081139
<|start|><|user|> Lena earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?<|eot|> <|assistant|> ```python rate = 18.5 hours = 46 regular = 40 * rate overtime = (hours - 40) * rate * 1.5 pay = regular + overtime print(f"{pay:.2f}") ``` Output: 906.50 Lena earns $906.50.<|eot|...
chat
[ { "role": "user", "content": "Lena earns $18.50 an hour and time and a half for hours over 40. What is the pay for a 46-hour week?" }, { "role": "assistant", "content": "```python\nrate = 18.5\nhours = 46\nregular = 40 * rate\novertime = (hours - 40) * rate * 1.5\npay = regular + overtime\nprint...
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "906.50", "printed": "906.50", "notation": null}
nlprog_det-setting-0081140
5 runs at 250 calories each burn how many calories in total? The program: ```python per_session = 250 sessions = 5 total = per_session * sessions # 1250 print(total) ``` (Result: 1250) 1250 calories in total.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
82
{"gold": "1250", "printed": "1250", "notation": null}
nlprog_det-setting-0081141
<|start|><|user|> Count the days between June 16, 2023 and July 27, 2023.<|eot|> <|assistant|> ```python from datetime import date first = date(2023, 6, 16) # datetime.date(2023, 6, 16) second = date(2023, 7, 27) # datetime.date(2023, 7, 27) print((second - first).days) ``` When run, it prints 41, as expected. There...
chat
[ { "role": "user", "content": "Count the days between June 16, 2023 and July 27, 2023." }, { "role": "assistant", "content": "```python\nfrom datetime import date\nfirst = date(2023, 6, 16) # datetime.date(2023, 6, 16)\nsecond = date(2023, 7, 27) # datetime.date(2023, 7, 27)\nprint((second - fi...
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "41", "printed": "41", "notation": null}
nlprog_det-setting-0081142
<|start|><|user|> A pack of 10 mugs sells for $390. What does each cost?<|eot|> <|assistant|> ```python total = 390 count = 10 per_item = total // count print(per_item) ``` It outputs 39. The unit price is $39.<|eot|> <|end|>
chat
[ { "role": "user", "content": "A pack of 10 mugs sells for $390. What does each cost?" }, { "role": "assistant", "content": "```python\ntotal = 390\ncount = 10\nper_item = total // count\nprint(per_item)\n```\nIt outputs 39.\n\nThe unit price is $39." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
80
{"gold": "39", "printed": "39", "notation": null}
nlprog_det-setting-0081143
<|start|><|user|> The firm was founded in 1996. How many years had passed by 2017?<|eot|> <|assistant|> That is 21 years.<|eot|> <|end|>
chat
[ { "role": "user", "content": "The firm was founded in 1996. How many years had passed by 2017?" }, { "role": "assistant", "content": "That is 21 years." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
31
{"gold": "21", "printed": "21", "notation": null}
nlprog_det-setting-0081145
A party has 21 days to respond to a motion served on March 4, 2022, with 3 days added because service was by mail. When is the response due? The program: ```python from datetime import date, timedelta served = date(2022, 3, 4) response_days = 21 mail_days = 3 due = served + timedelta(days=response_days + mail_days) pr...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "2022-03-28", "printed": "2022-03-28", "notation": null}
nlprog_det-setting-0081146
<|start|><|system|> Use a tool when a calculation is needed. Tools: [{"name": "code_runner", "description": "A Python interpreter. Returns standard output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> A penalt...
chat
[ { "role": "system", "content": "Use a tool when a calculation is needed. Tools:\n[{\"name\": \"code_runner\", \"description\": \"A Python interpreter. Returns standard output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}...
nlprog_det
setting
original
null
deterministic
[]
[]
225
{"gold": "500", "printed": "500", "notation": null}
nlprog_det-setting-0081147
An invoice lists 24 notebooks at $8 each, plus 5% sales tax. What is the invoice total? We can compute it in Python. ```python quantity = 24 unit_price = 8 subtotal = quantity * unit_price # 192 total = subtotal * (1 + 5 / 100) # 201.60000000000002 print(f"{total:.2f}") ``` Running this gives 201.60. The invoice to...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
143
{"gold": "201.60", "printed": "201.60", "notation": null}
nlprog_det-setting-0081149
A lease runs for 6 months at $850 per month. How much rent is paid over the whole term? Code: ```python monthly_rent = 850 months = 6 total = monthly_rent * months # 5100 print(total) ``` Run result — 5100 The rent over the term is $5,100.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
89
{"gold": "5100", "printed": "5100", "notation": null}
nlprog_det-setting-0081150
<|start|><|user|> Monthly: $12. Annual: $132. What is saved per year by paying annually?<|eot|> <|assistant|> ```python monthly = 12 yearly = 132 savings = monthly * 12 - yearly print(savings) ``` Run it and it prints 12. $12 is saved.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly: $12. Annual: $132. What is saved per year by paying annually?" }, { "role": "assistant", "content": "```python\nmonthly = 12\nyearly = 132\nsavings = monthly * 12 - yearly\nprint(savings)\n```\nRun it and it prints 12.\n\n$12 is saved." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
87
{"gold": "12", "printed": "12", "notation": null}
nlprog_det-setting-0081151
Which is cheaper per unit: 6 for $8.20 (A) or 15 for $23.60 (B)? Program: pack_a = 8.2 / 6 # 1.3666666666666665 pack_b = 23.6 / 15 # 1.5733333333333335 cheaper = "A" if pack_a < pack_b else "B" # 'A' print(cheaper) # execution result: A A has the lower unit price.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "A", "printed": "A", "notation": null}
nlprog_det-setting-0081152
<|start|><|system|> You can call tools. Available tools: [{"name": "py_exec", "description": "Run Python code in a sandbox; the result is whatever the code prints.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> ...
chat
[ { "role": "system", "content": "You can call tools. Available tools:\n[{\"name\": \"py_exec\", \"description\": \"Run Python code in a sandbox; the result is whatever the code prints.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source...
nlprog_det
setting
original
null
deterministic
[]
[]
242
{"gold": "2.40", "printed": "2.40", "notation": null}
nlprog_det-setting-0081154
What does $2,000 grow to in 5 years at 2% annual compounding? As a program: ```python principal = 2000 rate = 2 / 100 # 0.02 years = 5 value = principal * (1 + rate) ** years # 2208.1616064 print(f"{value:.2f}") ``` (Output: 2208.16) It is worth $2,208.16.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "2208.16", "printed": "2208.16", "notation": null}
nlprog_det-setting-0081156
At 1% a month (simple), what interest builds on $2,500 over 6 months? Here is the program. ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 6 interest = balance * monthly_rate * months # 150.0 print(f"{interest:.2f}") ``` Python prints 150.00. The interest is $150.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "150.00", "printed": "150.00", "notation": null}
nlprog_det-setting-0081157
A 18-month warranty starts on May 13, 2023. On what date does it end? Coded up: ```python from datetime import date start = date(2023, 5, 13) months = 18 years, month_index = divmod(start.month - 1 + months, 12) end = date(start.year + years, month_index + 1, start.day) print(end.isoformat()) ``` Executing it gives 20...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "2024-11-13", "printed": "2024-11-13", "notation": null}
nlprog_det-setting-0081159
Revenue is $10,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? Python does the arithmetic: ```python revenue = 10500 costs = 8000 profit = revenue - costs # 2500 margin = profit / revenue * 100 # 23.809523809523807 print(round(margin, 1)) ``` Run result — 23.8 The margin i...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
122
{"gold": "23.8", "printed": "23.8", "notation": null}
nlprog_det-setting-0081160
An unpaid balance of $4,000 accrues 1% simple interest per month. How much interest accrues in 2 months? In Python: ```python balance = 4000 monthly_rate = 1 / 100 # 0.01 months = 2 interest = balance * monthly_rate * months # 80.0 print(f"{interest:.2f}") ``` Result: 80.00 The interest is $80.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "80.00", "printed": "80.00", "notation": null}
nlprog_det-setting-0081161
A lawyer's fee is 25% of a $60,000 recovery. How large is the fee? Python version: ```python recovery = 60000 rate = 25 / 100 # 0.25 fee = recovery * rate # 15000.0 print(f"{fee:.2f}") ``` Running it prints 15000.00, as expected. The fee is $15,000.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
114
{"gold": "15000.00", "printed": "15000.00", "notation": null}
nlprog_det-setting-0081162
<|start|><|user|> Parking is $3 per hour with a daily maximum of $20. What do 11 hours cost?<|eot|> <|assistant|> ```python rate = 3 hours = 11 daily_max = 20 cost = min(rate * hours, daily_max) # 20 print(cost) ``` The program outputs: 20 The charge is $20.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Parking is $3 per hour with a daily maximum of $20. What do 11 hours cost?" }, { "role": "assistant", "content": "```python\nrate = 3\nhours = 11\ndaily_max = 20\ncost = min(rate * hours, daily_max) # 20\nprint(cost)\n```\nThe program outputs: 20\n\nThe charge is $...
nlprog_det
setting
original
null
deterministic
[]
[]
93
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0081163
<|start|><|system|> The following tools are available. Call one when it helps. {"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",...
chat
[ { "role": "system", "content": "The following tools are available. Call one when it helps.\n{\"name\": \"convert_units\", \"description\": \"Convert a quantity between units.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"value\": {\"type\": \"number\"}, \"from_unit\": {\"type\": \"string\"}, ...
nlprog_det
setting
original
null
deterministic
[]
[]
340
{"gold": "1166.00", "printed": "1166.00", "notation": null}
nlprog_det-setting-0081164
<|start|><|user|> Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons?<|eot|> <|assistant|> ```python base = 15 rate = 3.5 used = 8 free = 0 bill = base + rate * max(0, used - free) # 43.0 print(f"{bill:.2f}") ``` Execution prints: 43.00 The bill is $43.00.<|eot|> <|en...
chat
[ { "role": "user", "content": "Water costs $15 a month plus $3.50 for each 1,000 gallons over 0,000. What is owed for 8,000 gallons?" }, { "role": "assistant", "content": "```python\nbase = 15\nrate = 3.5\nused = 8\nfree = 0\nbill = base + rate * max(0, used - free) # 43.0\nprint(f\"{bill:.2f}\"...
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "43.00", "printed": "43.00", "notation": null}
nlprog_det-setting-0081165
What percentage of $5,000 is $1,200? Script: ```python budget = 5000 spent = 1200 percent = spent / budget * 100 # 24.0 print(round(percent, 1)) ``` Python prints 24.0, as expected. That is 24.0% of the budget.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
90
{"gold": "24.0", "printed": "24.0", "notation": null}
nlprog_det-setting-0081167
21 cables cost $6 apiece. With 5% tax added, what is the total? As a program: ```python quantity = 21 unit_price = 6 subtotal = quantity * unit_price # 126 total = subtotal * (1 + 5 / 100) # 132.3 print(f"{total:.2f}") ``` The run gives: 132.30 The invoice total is $132.30.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
121
{"gold": "132.30", "printed": "132.30", "notation": null}
nlprog_det-setting-0081168
How many of 25 votes make 60% (round up)? We write it as a program: ```python import math voters = 25 needed = math.ceil(voters * 60 / 100) # 15 print(needed) ``` Result — 15 At least 15 votes.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
84
{"gold": "15", "printed": "15", "notation": null}
nlprog_det-setting-0081170
<|start|><|user|> Nadia lends $20,000 at 8% simple interest per year for 2 years. How much interest is earned?<|eot|> <|assistant|> ```python principal = 20000 rate = 8 / 100 # 0.08 years = 2 interest = principal * rate * years # 3200.0 print(f"{interest:.2f}") ``` The program prints: 3200.00 The interest is $3,200....
chat
[ { "role": "user", "content": "Nadia lends $20,000 at 8% simple interest per year for 2 years. How much interest is earned?" }, { "role": "assistant", "content": "```python\nprincipal = 20000\nrate = 8 / 100 # 0.08\nyears = 2\ninterest = principal * rate * years # 3200.0\nprint(f\"{interest:.2f...
nlprog_det
setting
original
null
deterministic
[]
[]
117
{"gold": "3200.00", "printed": "3200.00", "notation": null}
nlprog_det-setting-0081172
<|start|><|user|> After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?<|eot|> <|assistant|> ```python award = 60000 fee = award * 40 / 100 remaining = award - fee per_client = remaining / 3 print(f"{per_client:.2f}") ``` The run gives: 12000.00 Eac...
chat
[ { "role": "user", "content": "After a 40% fee is taken from a $60,000 judgment, 3 plaintiffs share the remainder equally. What is each plaintiff's share?" }, { "role": "assistant", "content": "```python\naward = 60000\nfee = award * 40 / 100\nremaining = award - fee\nper_client = remaining / 3\n...
nlprog_det
setting
original
null
deterministic
[]
[]
118
{"gold": "12000.00", "printed": "12000.00", "notation": null}
nlprog_det-setting-0081173
Starting from $12,000, the team spends $2,486, $1,634, $783, $379. What remains? ```python budget = 12000 expenses = [2486, 1634, 783, 379] left = budget - sum(expenses) # 6718 print(left) ``` Shell output: 6718 $6,718 is left.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
110
{"gold": "6718", "printed": "6718", "notation": null}
nlprog_det-setting-0081174
The rules require 2/3 of 8 members (round up) to be present. How many is that? Written as code: import math members = 8 quorum = math.ceil(members * 2 / 3) # 6 print(quorum) (Run result: 6) That is 6 members.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
81
{"gold": "6", "printed": "6", "notation": null}
nlprog_det-setting-0081175
Counting only Monday through Friday, how many business days are there after April 8, 2028 through May 6, 2028? Set it up in Python: ```python from datetime import date, timedelta start = date(2028, 4, 8) end = date(2028, 5, 6) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).week...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
163
{"gold": "20", "printed": "20", "notation": null}
nlprog_det-setting-0081176
A measure needs at least 75% of 84 votes. How many votes is that, rounded up? In Python: ```python import math voters = 84 needed = math.ceil(voters * 75 / 100) # 63 print(needed) ``` On running, it outputs 63. 63 votes are needed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
94
{"gold": "63", "printed": "63", "notation": null}
nlprog_det-setting-0081177
<|start|><|user|> At an exchange rate of 1.35 CAD per USD, how many CAD is 6,990 USD?<|eot|> <|assistant|> amount = 6990 rate = 1.35 converted = amount * rate # 9436.5 print(f"{converted:.2f}") (Printed result: 9436.50) That is 9,436.50 CAD.<|eot|> <|end|>
chat
[ { "role": "user", "content": "At an exchange rate of 1.35 CAD per USD, how many CAD is 6,990 USD?" }, { "role": "assistant", "content": " amount = 6990\n rate = 1.35\n converted = amount * rate # 9436.5\n print(f\"{converted:.2f}\")\n(Printed result: 9436.50)\n\nThat is 9,436.50 CAD...
nlprog_det
setting
original
null
deterministic
[]
[]
97
{"gold": "9436.50", "printed": "9436.50", "notation": null}
nlprog_det-setting-0081178
A penalty of $250 a day accrues, capped at $1,000. What is owed after 58 days? Python does the arithmetic: per_day = 250 days = 58 cap = 1000 fine = min(per_day * days, cap) # 1000 print(fine) It outputs 1000. $1,000 is owed.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
91
{"gold": "1000", "printed": "1000", "notation": null}
nlprog_det-setting-0081179
Sofia lends $5,000 at 2% simple interest per year for 6 years. How much interest is earned? Python does the arithmetic: ```python principal = 5000 rate = 2 / 100 years = 6 interest = principal * rate * years print(f"{interest:.2f}") ``` It prints: 600.00 It earns $600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
106
{"gold": "600.00", "printed": "600.00", "notation": null}
nlprog_det-setting-0081180
<|start|><|system|> Available functions (JSON Schema): [{"name": "run_python", "description": "Evaluates Python and returns the printed output.", "parameters": {"type": "object", "properties": {"code": {"type": "string", "description": "Python source code"}}, "required": ["code"]}}]<|eot|> <|user|> Notice was given on ...
chat
[ { "role": "system", "content": "Available functions (JSON Schema):\n[{\"name\": \"run_python\", \"description\": \"Evaluates Python and returns the printed output.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"code\": {\"type\": \"string\", \"description\": \"Python source code\"}}, \"require...
nlprog_det
setting
original
null
deterministic
[]
[]
245
{"gold": "2021-10-11", "printed": "2021-10-11", "notation": null}
nlprog_det-setting-0081182
<|start|><|user|> Copies cost $10 plus $0.25 for each page beyond 10. How much for 98 pages?<|eot|> <|assistant|> The total is $32.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Copies cost $10 plus $0.25 for each page beyond 10. How much for 98 pages?" }, { "role": "assistant", "content": "The total is $32.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
40
{"gold": "32.00", "printed": "32.00", "notation": null}
nlprog_det-setting-0081183
Convert 53.9 km to meters. That is 53,900 meters.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
22
{"gold": "53900", "printed": "53900", "notation": null}
nlprog_det-setting-0081184
Equipment costs $30,000, has a salvage value of $6,000, and a useful life of 3 years. What is the straight-line depreciation per year? Let's compute it with Python. cost = 30000 salvage = 6000 years = 3 per_year = (cost - salvage) / years # 8000.0 print(f"{per_year:.2f}") Executing it gives: 8000....
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
126
{"gold": "8000.00", "printed": "8000.00", "notation": null}
nlprog_det-setting-0081185
Goran was born on May 13, 1964. How old is Goran on March 5, 2022? As Python: ```python from datetime import date born = date(1964, 5, 13) # datetime.date(1964, 5, 13) on = date(2022, 3, 5) # datetime.date(2022, 3, 5) age = on.year - born.year - ((on.month, on.day) < (born.month, born.day)) # 57 print(age) ``` Run ...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
157
{"gold": "57", "printed": "57", "notation": null}
nlprog_det-setting-0081186
Revenue is $8,500 and costs are $8,000. What is the profit margin as a percent of revenue (one decimal)? A few lines of Python do it: ```python revenue = 8500 costs = 8000 profit = revenue - costs # 500 margin = profit / revenue * 100 # 5.88235294117647 print(round(margin, 1)) ``` Interpreter output: 5.9 The margin...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
124
{"gold": "5.9", "printed": "5.9", "notation": null}
nlprog_det-setting-0081187
<|start|><|user|> One can of paint covers 350 square feet. How many cans are needed for 832 square feet of wall?<|eot|> <|assistant|> Buy 3 cans.<|eot|> <|end|>
chat
[ { "role": "user", "content": "One can of paint covers 350 square feet. How many cans are needed for 832 square feet of wall?" }, { "role": "assistant", "content": "Buy 3 cans." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
41
{"gold": "3", "printed": "3", "notation": null}
nlprog_det-setting-0081188
<|start|><|user|> An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months?<|eot|> <|assistant|> ```python balance = 2500 monthly_rate = 1 / 100 # 0.01 months = 3 interest = balance * monthly_rate * months # 75.0 print(f"{interest:.2f}") ``` (Output: 75.00) $75.00 accru...
chat
[ { "role": "user", "content": "An unpaid balance of $2,500 accrues 1% simple interest per month. How much interest accrues in 3 months?" }, { "role": "assistant", "content": "```python\nbalance = 2500\nmonthly_rate = 1 / 100 # 0.01\nmonths = 3\ninterest = balance * monthly_rate * months # 75.0\...
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "75.00", "printed": "75.00", "notation": null}
nlprog_det-setting-0081189
<|start|><|user|> Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?<|eot|> <|assistant|> ```python rate = 16.0 hours = 45 regular = 40 * rate # 640.0 overtime = (hours - 40) * rate * 1.5 # 120.0 pay = regular + overtime # 760.0 print(f"{pay:.2f}") ``` The script prints ...
chat
[ { "role": "user", "content": "Pay is $16.00/hour, with overtime at 1.5 times that rate beyond 40 hours. How much for 45 hours?" }, { "role": "assistant", "content": "```python\nrate = 16.0\nhours = 45\nregular = 40 * rate # 640.0\novertime = (hours - 40) * rate * 1.5 # 120.0\npay = regular + o...
nlprog_det
setting
original
null
deterministic
[]
[]
145
{"gold": "760.00", "printed": "760.00", "notation": null}
nlprog_det-setting-0081190
A $150 dinner bill gets a 15% tip, and 2 people share the cost equally. What is each person's share? In code: ```python bill = 150 tip_rate = 15 / 100 # 0.15 people = 2 each = bill * (1 + tip_rate) / people # 86.25 print(f"{each:.2f}") ``` Interpreter output: 86.25 The share is $86.25 each.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
120
{"gold": "86.25", "printed": "86.25", "notation": null}
nlprog_det-setting-0081191
<|start|><|system|> You help with homework problems.<|eot|> <|user|> Straight-line depreciation: cost $45,000, salvage $2,000, 5 years. How much per year?<|eot|> <|assistant|> ```python cost = 45000 salvage = 2000 years = 5 per_year = (cost - salvage) / years # 8600.0 print(f"{per_year:.2f}") ``` Executed, it shows: 8...
chat
[ { "role": "system", "content": "You help with homework problems." }, { "role": "user", "content": "Straight-line depreciation: cost $45,000, salvage $2,000, 5 years. How much per year?" }, { "role": "assistant", "content": "```python\ncost = 45000\nsalvage = 2000\nyears = 5\nper_year...
nlprog_det
setting
original
null
deterministic
[]
[]
141
{"gold": "8600.00", "printed": "8600.00", "notation": null}
nlprog_det-setting-0081192
Counting only Monday through Friday, how many business days are there after April 11, 2022 through May 15, 2022? Python version: ```python from datetime import date, timedelta start = date(2022, 4, 11) end = date(2022, 5, 15) count = 0 for k in range(1, (end - start).days + 1): if (start + timedelta(days=k)).weekd...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
154
{"gold": "24", "printed": "24", "notation": null}
nlprog_det-setting-0081193
<|start|><|user|> How many of 211 votes make 60% (round up)?<|eot|> <|assistant|> At least 127 votes.<|eot|> <|end|>
chat
[ { "role": "user", "content": "How many of 211 votes make 60% (round up)?" }, { "role": "assistant", "content": "At least 127 votes." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
32
{"gold": "127", "printed": "127", "notation": null}
nlprog_det-setting-0081194
Rent of $1,250 goes up 6%. What is the new rent? Python code: ```python rent = 1250 increase = 6 / 100 # 0.06 new_rent = rent * (1 + increase) # 1325.0 print(f"{new_rent:.2f}") ``` The code prints 1325.00. It rises to $1,325.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
111
{"gold": "1325.00", "printed": "1325.00", "notation": null}
nlprog_det-setting-0081195
<|start|><|user|> Monthly rent is $900. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?<|eot|> <|assistant|> The prorated rent is $270.00.<|eot|> <|end|>
chat
[ { "role": "user", "content": "Monthly rent is $900. A tenant moves in with 9 days left in a 30-day month. What is the prorated rent?" }, { "role": "assistant", "content": "The prorated rent is $270.00." } ]
nlprog_det
setting
original
null
deterministic
[]
[]
53
{"gold": "270.00", "printed": "270.00", "notation": null}
nlprog_det-setting-0081196
Fixed costs are $1,200. Each unit sells for $20 and costs $14 to make. How many units must be sold to break even? Translated to Python: import math fixed = 1200 price = 20 variable = 14 units = math.ceil(fixed / (price - variable)) # 200 print(units) Program output — 200 Break-even is 200 uni...
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
103
{"gold": "200", "printed": "200", "notation": null}
nlprog_det-setting-0081197
An attorney bills 12 hours at $300 per hour. What is the bill? Script: hours = 12 rate = 300 bill = hours * rate print(f"{bill:.2f}") Executing it gives 3600.00. The bill is $3,600.00.
plain
null
nlprog_det
setting
original
null
deterministic
[]
[]
73
{"gold": "3600.00", "printed": "3600.00", "notation": null}