Dataset Viewer
Auto-converted to Parquet Duplicate
user
stringlengths
11
1.77k
assistant
stringlengths
143
43.9k
Ethan bought a 10-pack of pens for $9.80 and a 5-pack of erasers for $3. How much did he spend in total?
```python def simple_math_problem() -> float: """ Ethan bought a 10-pack of pens for $9.80 and a 5-pack of erasers for $3. How much did he spend in total? """ cost_of_pens = 9.80 cost_of_erasers = 3.00 total_cost = cost_of_pens + cost_of_erasers result = total_cost return result print(...
A cake recipe calls for 2 cups of sugar for every 3 cups of flour. If you want to make 6 cups of flour, how much sugar do you need?
```python def simple_math_problem() -> float: """ A cake recipe calls for 2 cups of sugar for every 3 cups of flour. If you want to make 6 cups of flour, how much sugar do you need? """ sugar_per_flour_ratio = 2 / 3 flour_needed = 6 sugar_needed = sugar_per_flour_ratio * flour_needed result ...
Student: In a football team of 50, 60% of players are forwards and 25% are defenders. What percentage of players are mid-fielders?
```python def simple_math_problem() -> float: """ In a football team of 50, 60% of players are forwards and 25% are defenders. What percentage of players are mid-fielders? """ total_players = 50 percentage_forwards = 60 percentage_defenders = 25 percentage_midfielders = 100 - percentage_forwards - percentage_defenders ...
Anna makes 24 cupcakes for a bake sale. She puts frosting on 18 of them and sprinkles on 12 of them. Some cupcakes have both frosting and sprinkles, but at least one cupcake has neither. What is the maximum number of cupcakes that have both frosting and sprinkles?
```python def simple_math_problem() -> int: """ Anna makes 24 cupcakes for a bake sale. She puts frosting on 18 of them and sprinkles on 12 of them. Some cupcakes have both frosting and sprinkles, but at least one cupcake has neither. What is the maximum number of cupcakes that have both frosting and sprinkles?...
Jenna has a block of ice that measures 4 inches long, 5 inches wide and 8 inches high. She wants to melt it using a heat pad that uses 40 watts of energy per hour. How long will it take the heat pad to melt the ice, in hours?
```python def simple_math_problem() -> float: """ Jenna has a block of ice that measures 4 inches long, 5 inches wide and 8 inches high. She wants to melt it using a heat pad that uses 40 watts of energy per hour. How long will it take the heat pad to melt the ice, in hours? """ # Define the dimensions ...
If a book has 300 pages and John reads 40 pages every hour, how many hours will it take him to finish the book?
```python def simple_math_problem() -> float: """ If a book has 300 pages and John reads 40 pages every hour, how many hours will it take him to finish the book? """ total_pages = 300 pages_read_per_hour = 40 hours_to_finish = total_pages / pages_read_per_hour result = hours_to_finish r...
A pharmacy charges $20 for a bottle of pills that lasts for 10 days. How much would it cost for a supply of pills to last for 30 days?
```python def simple_math_problem() -> float: """ A pharmacy charges $20 for a bottle of pills that lasts for 10 days. How much would it cost for a supply of pills to last for 30 days? """ cost_per_bottle = 20 # Cost of a single bottle of pills days_per_bottle = 10 # Number of days a single bottle...
Rodrigo has 5 one-dollar bills, 4 ten-dollar bills, and 3 twenty-dollar bills. He goes to buy macadamia nuts, which cost $10 a pound. He buys what he wants and has $27 in change. He plans to eat the macadamia nuts all in four days. How many pounds does he eat on average per day?
```python def simple_math_problem() -> float: """ Rodrigo has 5 one-dollar bills, 4 ten-dollar bills, and 3 twenty-dollar bills. He goes to buy macadamia nuts, which cost $10 a pound. He buys what he wants and has $27 in change. He plans to eat the macadamia nuts all in four days. How many pounds does he eat on...
In a race, the winner ran 5 miles in 30 minutes. What was their average speed in miles per minute?
```python def simple_math_problem() -> float: """ In a race, the winner ran 5 miles in 30 minutes. What was their average speed in miles per minute? """ distanceRun = 5 # miles timeTaken = 30 # minutes averageSpeed = distanceRun / timeTaken result = averageSpeed return result print(s...
Liam is a mountain climber and has to climb mountains during his expeditions. He climbs Mount Everest, which is 29,029 ft high, 3 times in his career. He also climbs Mount Denali, which is 20,310 ft high, 5 times in his career. How many total feet has Liam climbed during his expeditions?
```python def simple_math_problem() -> float: """ Liam is a mountain climber and has to climb mountains during his expeditions. He climbs Mount Everest, which is 29,029 ft high, 3 times in his career. He also climbs Mount Denali, which is 20,310 ft high, 5 times in his career. How many total feet has Liam climb...
Jamie has a bag of marbles with a certain amount of marbles in it in the morning. Throughout the day, he gives away 25 marbles and then gets 50 more. By the end of the day, he only has 100 marbles left. How many marbles were in the bag in the morning?
```python def simple_math_problem() -> int: """ Jamie has a bag of marbles with a certain amount of marbles in it in the morning. Throughout the day, he gives away 25 marbles and then gets 50 more. By the end of the day, he only has 100 marbles left. How many marbles were in the bag in the morning? """ ...
An office building has 9 floors and each floor is 12 feet tall. What is the total height of the building in feet?
```python def simple_math_problem() -> float: """ An office building has 9 floors and each floor is 12 feet tall. What is the total height of the building in feet? """ number_of_floors = 9 height_per_floor = 12 total_height = number_of_floors * height_per_floor result = total_height ret...
Student: How many pages will Janet have read if she reads 80 pages a day for 8 weeks?
```python def simple_math_problem() -> float: """ How many pages will Janet have read if she reads 80 pages a day for 8 weeks? """ pages_per_day = 80 weeks = 8 days_per_week = 7 total_days = weeks * days_per_week total_pages_read = pages_per_day * total_days result = total_pages_read...
Lily wants to buy a dress that costs $200. She takes out a loan from the bank at a 20% annual interest rate. If Lily borrows $100 from the bank, what will be the total cost of the dress for Lily?
```python def simple_math_problem() -> float: """ Lily wants to buy a dress that costs $200. She takes out a loan from the bank at a 20% annual interest rate. If Lily borrows $100 from the bank, what will be the total cost of the dress for Lily? """ dress_cost = 200 loan_amount = 100 interest_ra...
Maria opens a jar of peanuts and eats 7 of them to see if she likes them. She does, so she eats 7 more. The jar has 70 peanuts in it and starting on the second day she has them, Maria eats 14 each day. How many days does it take for Maria to eat the whole jar of peanuts?
```python def simple_math_problem() -> float: """ Maria opens a jar of peanuts and eats 7 of them to see if she likes them. She does, so she eats 7 more. The jar has 70 peanuts in it and starting on the second day she has them, Maria eats 14 each day. How many days does it take for Maria to eat the whole jar of...
If Sally runs 2 miles every day for a week, except on Friday when she runs 3 miles, how many miles did she run in total?
```python def simple_math_problem() -> float: """ If Sally runs 2 miles every day for a week, except on Friday when she runs 3 miles, how many miles did she run in total? """ miles_per_day = 2 days_running_2_miles = 6 miles_on_friday = 3 total_miles_running_2_miles = miles_per_day * days_run...
A pack of gum contains 12 pieces and costs $0.6. How many packs of gum can Leo buy with $3.6?
```python def simple_math_problem() -> float: """ A pack of gum contains 12 pieces and costs $0.6. How many packs of gum can Leo buy with $3.6? """ cost_per_pack = 0.6 # Cost of one pack of gum total_money = 3.6 # Total money Leo has packs_of_gum = total_money / cost_per_pack # Calculate the ...
Sarah has $350, she spends $75 on a dress, $60 on dinner and saves the rest. How much money does she have left now?
```python def simple_math_problem() -> float: """ Sarah has $350, she spends $75 on a dress, $60 on dinner and saves the rest. How much money does she have left now? """ initial_money = 350 money_spent_on_dress = 75 money_spent_on_dinner = 60 total_money_spent = money_spent_on_dress + money_...
A farmer has 20 cows and 45 chickens. If each cow has 4 legs and each chicken has 2 legs, how many legs are there in total in the farm?
```python def simple_math_problem() -> int: """ A farmer has 20 cows and 45 chickens. If each cow has 4 legs and each chicken has 2 legs, how many legs are there in total in the farm? """ number_of_cows = 20 number_of_chickens = 45 legs_per_cow = 4 legs_per_chicken = 2 total_cow_legs = n...
There are 25 students in a class. If 30% of the class are girls, how many girls are in the class?
```python def simple_math_problem() -> float: """ There are 25 students in a class. If 30% of the class are girls, how many girls are in the class? """ total_students = 25 percentage_girls = 30 # in percent percentage_girls_decimal = percentage_girls / 100 # convert to decimal number_of_gi...
Rachel baked 1 tray of cookies for 7 days. She eats 6 cookies per day before her sister comes over and eats 20 cookies. If each tray makes 24 cookies, how many cookies left on the 7th day?
```python def simple_math_problem() -> int: """ Rachel baked 1 tray of cookies for 7 days. She eats 6 cookies per day before her sister comes over and eats 20 cookies. If each tray makes 24 cookies, how many cookies left on the 7th day? """ cookies_per_tray = 24 days = 7 cookies_rachel_eats_per_...
A fruit basket contains 10 apples, 6 oranges, and 8 pears. If a fruit is picked at random from the basket, what is the probability of getting an apple or an orange?
```python def simple_math_problem() -> float: """ A fruit basket contains 10 apples, 6 oranges, and 8 pears. If a fruit is picked at random from the basket, what is the probability of getting an apple or an orange? """ total_apples = 10 total_oranges = 6 total_pears = 8 total_fruits = total_...
Student: Ben has 15 stickers in his album. He buys 7 more stickers from the store. He gives 4 stickers to his friend Sam and 2 stickers to his brother Tom. How many stickers does Ben have in his album now?
```python def simple_math_problem() -> int: """ Student: Ben has 15 stickers in his album. He buys 7 more stickers from the store. He gives 4 stickers to his friend Sam and 2 stickers to his brother Tom. How many stickers does Ben have in his album now? """ initial_stickers = 15 stickers_bought = 7 ...
amantha can trade 5 pens for a pencil and 4 pencils for a marker. If she has 63 pens and she wants to convert all of them into markers, how many markers will she have?
```python def simple_math_problem() -> float: """ amantha can trade 5 pens for a pencil and 4 pencils for a marker. If she has 63 pens and she wants to convert all of them into markers, how many markers will she have? """ pensTotal = 63 pencilsPerPen = 1 / 5 pencilsTotal = pensTotal * pencilsPer...
A theme park promised its visitors extra ride time if they buy a season pass. Normally, the ride time is 60 minutes. The theme park told the visitors that if they buy a season pass, they get an extra 20 minutes of ride time. If 500 visitors bought the season pass, how much longer will the ride time be?
```python def simple_math_problem() -> float: """ A theme park promised its visitors extra ride time if they buy a season pass. Normally, the ride time is 60 minutes. The theme park told the visitors that if they buy a season pass, they get an extra 20 minutes of ride time. If 500 visitors bought the season pas...
Alex applied for a job that pays $20 per hour and works 8 hours every day for 22 days in a month. What is Alex's monthly pay before tax?
```python def simple_math_problem() -> float: """ Alex applied for a job that pays $20 per hour and works 8 hours every day for 22 days in a month. What is Alex's monthly pay before tax? """ hourly_wage = 20 # dollars per hour hours_worked_per_day = 8 # hours days_worked_in_month = 22 # days ...
A car's gas tank has a capacity of 14 gallons and currently has 3 gallons left. If the car's gas mileage is 30 miles per gallon and gas costs $2.50 per gallon, how much will it cost to fill up the tank?
```python def simple_math_problem() -> float: """ A car's gas tank has a capacity of 14 gallons and currently has 3 gallons left. If the car's gas mileage is 30 miles per gallon and gas costs $2.50 per gallon, how much will it cost to fill up the tank? """ tank_capacity = 14 # gallons current_gas =...
Student: Rose went shopping for to buy 10 boxes of chocolate for her friends. Each box of chocolate costs 4 dollars and she found out that there is an additional 10% discount. How much money did she spend in total?
```python def simple_math_problem() -> float: """ Student: Rose went shopping for to buy 10 boxes of chocolate for her friends. Each box of chocolate costs 4 dollars and she found out that there is an additional 10% discount. How much money did she spend in total? """ boxes_of_chocolate = 10 cost_pe...
David has a wallet with 200 dollars in it. He spends 25% of the money on books and donates 15 dollars to a charity. If he has 130 dollars left, how much money did he have at the beginning?
```python def simple_math_problem() -> float: """ David has a wallet with 200 dollars in it. He spends 25% of the money on books and donates 15 dollars to a charity. If he has 130 dollars left, how much money did he have at the beginning? """ initial_money = 200 # Initial amount of money David had ...
Student: A restaurant serves 15 tables per hour. If each table has 4 customers on average, and each customer orders 2 drinks, how many drinks does the restaurant serve in 3 hours?
```python def simple_math_problem() -> float: """ A restaurant serves 15 tables per hour. If each table has 4 customers on average, and each customer orders 2 drinks, how many drinks does the restaurant serve in 3 hours? """ tables_per_hour = 15 customers_per_table = 4 drinks_per_customer = 2 ...
Juan works at a store and earns $10 per hour. Last week he worked 24 hours and received a bonus of $80. How much did Juan earn last week?
```python def simple_math_problem() -> float: """ Juan works at a store and earns $10 per hour. Last week he worked 24 hours and received a bonus of $80. How much did Juan earn last week? """ hourly_wage = 10 hours_worked = 24 bonus_received = 80 total_earnings_from_hours = hourly_wage * hou...
There were 60 students in a class. 40% of the students wore blue shirts. How many students wore blue shirts?
```python def simple_math_problem() -> float: """ There were 60 students in a class. 40% of the students wore blue shirts. How many students wore blue shirts? """ total_students = 60 percentage_wearing_blue = 40 students_wearing_blue = (percentage_wearing_blue / 100) * total_students result = students_wearing_blue ret...
A pizza restaurant sells 15 pizzas every hour. How many pizzas does it sell in a day (24 hours)?
```python def simple_math_problem() -> int: """ A pizza restaurant sells 15 pizzas every hour. How many pizzas does it sell in a day (24 hours)? """ pizzas_per_hour = 15 hours_in_a_day = 24 total_pizzas_sold = pizzas_per_hour * hours_in_a_day result = total_pizzas_sold return result # Example usage print(simple_math_...
A bookstore sold 25 mystery novels for $12.99 each, 15 romance novels for $8.99 each, and 10 biographies for $15.99 each. How much money did the bookstore make?
```python def simple_math_problem() -> float: """ A bookstore sold 25 mystery novels for $12.99 each, 15 romance novels for $8.99 each, and 10 biographies for $15.99 each. How much money did the bookstore make? """ mystery_novels_sold = 25 price_per_mystery_novel = 12.99 romance_novels_sold = 15...
David has 5 packs of pencils that contain 12 pencils each. He gives away 2 pencils to each of his 10 friends and sells the remaining pencils for $0.5 each. How much money does he make from selling the pencils?
```python def simple_math_problem() -> float: """ David has 5 packs of pencils that contain 12 pencils each. He gives away 2 pencils to each of his 10 friends and sells the remaining pencils for $0.5 each. How much money does he make from selling the pencils? """ packs_of_pencils = 5 pencils_per_pac...
Student: John runs 2 km every day for 5 days. How many kilometers did John run in total?
```python def simple_math_problem() -> float: """ John runs 2 km every day for 5 days. How many kilometers did John run in total? """ kilometers_per_day = 2 number_of_days = 5 total_kilometers = kilometers_per_day * number_of_days result = total_kilometers return result print(simple_ma...
In order to earn $12,000 in interest over a year at a 4.5% annual rate, how much money does Tom need to invest?
```python def simple_math_problem() -> float: """ In order to earn $12,000 in interest over a year at a 4.5% annual rate, how much money does Tom need to invest? """ interest_earned = 12000 annual_rate = 0.045 # Convert percentage to decimal principal_amount = interest_earned / annual_rate ...
There are 7 ice cream trucks and each truck has 15 flavors. How many different combinations of 3 flavors can you get if you order from one truck?
```python import math def simple_math_problem() -> float: """ There are 7 ice cream trucks and each truck has 15 flavors. How many different combinations of 3 flavors can you get if you order from one truck? """ total_trucks = 7 flavors_per_truck = 15 flavors_to_choose = 3 combinations_per_...
1. Sammy started with $72 in his wallet. He spent half of it at the store, and half of the remaining on a toy. He then gave his friend $12. How much money is left in Sammy's wallet?
```python def simple_math_problem() -> float: """ Sammy started with $72 in his wallet. He spent half of it at the store, and half of the remaining on a toy. He then gave his friend $12. How much money is left in Sammy's wallet? """ initial_money = 72 money_spent_at_store = initial_money / 2 rem...
An accountant's salary is $2,000 per month plus 5% of the amount of money he saves for the company in that month. If the accountant saves $50,000 in a month, what is his total earnings for that month?
```python def simple_math_problem() -> float: """ An accountant's salary is $2,000 per month plus 5% of the amount of money he saves for the company in that month. If the accountant saves $50,000 in a month, what is his total earnings for that month? """ base_salary = 2000 savings_amount = 50000 ...
In her triathlon training, Amanda swims for 2 kilometers, bikes for 3/4 times the distance she swam, and runs for four times the distance she biked. What is the total distance Amanda covers during her training?
```python def simple_math_problem() -> float: """ In her triathlon training, Amanda swims for 2 kilometers, bikes for 3/4 times the distance she swam, and runs for four times the distance she biked. What is the total distance Amanda covers during her training? """ swimming_distance = 2 # kilometers ...
Athena still had 40 dollars after buying 4 different items. If the average cost of each item was 10 dollars, what was the total cost of the items?
```python def simple_math_problem() -> float: """ Athena still had 40 dollars after buying 4 different items. If the average cost of each item was 10 dollars, what was the total cost of the items? """ moneyLeft = 40 averageCostPerItem = 10 numberOfItems = 4 totalCostOfItems = averageCostPerI...
Lisa, a physics teacher, assigns 360 points in the first quarter. There are 5 times as many lab points as quiz points, and 7 more quiz points than homework points. How many homework points are there in the first quarter?
```python def simple_math_problem() -> float: """ Lisa, a physics teacher, assigns 360 points in the first quarter. There are 5 times as many lab points as quiz points, and 7 more quiz points than homework points. How many homework points are there in the first quarter? """ total_points = 360 # Let'...
Ashley goes on a backpacking trip through eight different mountain ranges. She camps in the first mountain range for 3 nights and then spends 4 times as long in each of the remaining seven mountain ranges combined. How much time does she spend on the trip?
```python def simple_math_problem() -> float: """ Ashley goes on a backpacking trip through eight different mountain ranges. She camps in the first mountain range for 3 nights and then spends 4 times as long in each of the remaining seven mountain ranges combined. How much time does she spend on the trip? "...
A movie is 2 hours long. Max watches it at 1.5 times the average speed while Lily watches it at the average speed. If they both watch four of the same movies, what is the total number of hours they watched?
```python def simple_math_problem() -> float: """ A movie is 2 hours long. Max watches it at 1.5 times the average speed while Lily watches it at the average speed. If they both watch four of the same movies, what is the total number of hours they watched? """ movie_length = 2 # hours max_speed_mul...
A rectangle has a perimeter of 36cm. The length is triple the width. What is the width of the rectangle?
```python def simple_math_problem() -> float: """ A rectangle has a perimeter of 36cm. The length is triple the width. What is the width of the rectangle? """ perimeter = 36 # Total perimeter of the rectangle length_multiplier = 3 # Multiplier for the length compared to the width # Let's ...
There are 5 friends playing basketball together. Each person has 2 shoes on. How many shoes are on the basketball court?
```python def simple_math_problem() -> int: """ There are 5 friends playing basketball together. Each person has 2 shoes on. How many shoes are on the basketball court? """ number_of_friends = 5 shoes_per_friend = 2 total_shoes = number_of_friends * shoes_per_friend result = total_shoes ...
In a theme park, there are 10 ride queues, 25 attraction lines, and 50 show seats. If the show seats are 60% full, and the ride queues and attraction lines combined have the same number of people as the show seats, how many lines are empty in the attraction section if only two ride queues have people in them?
```python def simple_math_problem() -> int: """ In a theme park, there are 10 ride queues, 25 attraction lines, and 50 show seats. If the show seats are 60% full, and the ride queues and attraction lines combined have the same number of people as the show seats, how many lines are empty in the attraction sectio...
Alex owns a store that sells books. He has 1000 books in his inventory and sells an average of 50 books a day. How many days will it take for him to sell all of his books?
```python def simple_math_problem() -> float: """ Alex owns a store that sells books. He has 1000 books in his inventory and sells an average of 50 books a day. How many days will it take for him to sell all of his books? """ total_books = 1000 books_sold_per_day = 50 days_to_sell_all_books = to...
Bradley is throwing a birthday party and needs to order enough pizza for his guests. If each pizza has 8 slices and he expects 20 guests, and each guest will eat an average of 2 slices, how many pizzas should he order?
```python def simple_math_problem() -> float: """ Bradley is throwing a birthday party and needs to order enough pizza for his guests. If each pizza has 8 slices and he expects 20 guests, and each guest will eat an average of 2 slices, how many pizzas should he order? """ slices_per_pizza = 8 number...
2. Brandon spent half his money on a basketball and used 3/7 of the remaining money to buy new pair of shoes. He put the rest of the money in his piggy bank. If he started with $56, how much money was left in his piggy bank?
```python def simple_math_problem() -> float: """ 2. Brandon spent half his money on a basketball and used 3/7 of the remaining money to buy new pair of shoes. He put the rest of the money in his piggy bank. If he started with $56, how much money was left in his piggy bank? """ initial_money = 56 # Mon...
A book club has 20 members, paired into reading partners (in the same club). Only 40% of the reading couples finish the book they started. If each pair reads one book, how many books will be finished?
```python def simple_math_problem() -> float: """ A book club has 20 members, paired into reading partners (in the same club). Only 40% of the reading couples finish the book they started. If each pair reads one book, how many books will be finished? """ total_members = 20 members_per_pair = 2 p...
Kevin made 12 cupcakes and divided them equally among his 3 friends. He also had 6 cookies that he ate by himself. How many more sweets did Kevin eat than each of his friends?
```python def simple_math_problem() -> int: """ Kevin made 12 cupcakes and divided them equally among his 3 friends. He also had 6 cookies that he ate by himself. How many more sweets did Kevin eat than each of his friends? """ total_cupcakes = 12 number_of_friends = 3 cookies_kevin_ate = 6 ...
Student: John bought 5 shirts at $10 each, and 3 pairs of pants at $15 each. If he also received a discount of $5 in total, what was his final bill?
```python def simple_math_problem() -> float: """ Student: John bought 5 shirts at $10 each, and 3 pairs of pants at $15 each. If he also received a discount of $5 in total, what was his final bill? """ shirts_bought = 5 shirt_price = 10 pants_bought = 3 pant_price = 15 discount_received...
Student: Matthew is making a pizza and needs 8 cups of cheese. He only has a 1/2 cup measuring cup. How many scoops should he take?
```python def simple_math_problem() -> float: """ Student: Matthew is making a pizza and needs 8 cups of cheese. He only has a 1/2 cup measuring cup. How many scoops should he take? """ total_cheese_needed = 8 # Total cheese needed in cups measuring_cup_capacity = 0.5 # Measuring cup capacity in c...
A DVD has 480 sectors, each storing 512 bytes of data. Mary has 8 racks, each with 5 shelves that can hold 12 DVDs each. If her racks are 75% full, how many bytes of data are there on all her DVDs?
```python def simple_math_problem() -> float: """ A DVD has 480 sectors, each storing 512 bytes of data. Mary has 8 racks, each with 5 shelves that can hold 12 DVDs each. If her racks are 75% full, how many bytes of data are there on all her DVDs? """ sectors_per_dvd = 480 bytes_per_sector = 512 ...
Olivia and her teammates were practicing basketball. Olivia made 18 shots and her teammates made a total of 25 shots. Olivia wanted to make at least 5 more shots than her teammates. If her teammates make 3 more shots, how many more shots does Olivia need to make to reach her goal?
```python def simple_math_problem() -> int: """ Olivia and her teammates were practicing basketball. Olivia made 18 shots and her teammates made a total of 25 shots. Olivia wanted to make at least 5 more shots than her teammates. If her teammates make 3 more shots, how many more shots does Olivia need to make t...
In a grocery store, there are three types of bread: white, whole wheat, and rye. Each type is priced at $2 per loaf. If Emily wants to buy 4 white loaves, 3 whole wheat loaves, and one-fourth as many rye loaves as white loaves, how much does she need to pay for all the bread?
```python def simple_math_problem() -> float: """ In a grocery store, there are three types of bread: white, whole wheat, and rye. Each type is priced at $2 per loaf. If Emily wants to buy 4 white loaves, 3 whole wheat loaves, and one-fourth as many rye loaves as white loaves, how much does she need to pay for ...
arah got 7 out of 10 questions correct on her math test. What is her percentage score?
```python def simple_math_problem() -> float: """ Sarah got 7 out of 10 questions correct on her math test. What is her percentage score? """ correct_answers = 7 total_questions = 10 score_ratio = correct_answers / total_questions result = score_ratio * 100 return result # Example usag...
Ella and her classmates are making paper flowers for their teacher. Ella has 8 sheets of blue paper, 6 sheets of yellow paper, and 4 sheets of pink paper. Each sheet of paper can make 3 flowers. How many flowers in total can Ella and her classmates make?
```python def simple_math_problem() -> int: """ Ella and her classmates are making paper flowers for their teacher. Ella has 8 sheets of blue paper, 6 sheets of yellow paper, and 4 sheets of pink paper. Each sheet of paper can make 3 flowers. How many flowers in total can Ella and her classmates make? """ ...
John can mow a lawn of area 720 sq feet in 4 hours. How many lawns each of area 1080 sq feet he can mow in 12 hours?
```python def simple_math_problem() -> float: """ John can mow a lawn of area 720 sq feet in 4 hours. How many lawns each of area 1080 sq feet he can mow in 12 hours? """ lawn_area_initial = 720 # sq feet time_initial = 4 # hours lawn_area_target = 1080 # sq feet time_target = 12 # hours...
Angelina needs to move 9 boxes across a room that is 8 feet away. Each box weighs 5 pounds. What is the total weight of the boxes that Angelina needs to move?
```python def simple_math_problem() -> float: """ Angelina needs to move 9 boxes across a room that is 8 feet away. Each box weighs 5 pounds. What is the total weight of the boxes that Angelina needs to move? """ numberOfBoxes = 9 weightPerBox = 5 # in pounds totalWeight = numberOfBoxes * weigh...
-The numbers and the items in the new questions should be **different** from the original question and from each other. -Use **natural language** and **complete sentences** for the questions. Here are some possible questions and Python programs: A bakery has to make some muffins and cupcakes for a school event. They ha...
```python def simple_math_problem() -> tuple: """ A bakery has to make some muffins and cupcakes for a school event. They have enough batter to make 120 muffins or 80 cupcakes. They decide to make 3 muffins for every 2 cupcakes. How many of each do they make? """ total_muffins_possible = 120 total_c...
Amy is planting a garden and wants to put blue, yellow, and pink flowers around her garden. She has bought 10 blue flowers, 8 yellow flowers, and 6 pink flowers. How many flowers in total did Amy buy?
```python def simple_math_problem() -> int: """ Amy is planting a garden and wants to put blue, yellow, and pink flowers around her garden. She has bought 10 blue flowers, 8 yellow flowers, and 6 pink flowers. How many flowers in total did Amy buy? """ blue_flowers = 10 yellow_flowers = 8 pink_f...
Student: Two gourmet stores each sell 20 boxes of chocolates. The first store sells 4 types of chocolates in 5 boxes of each type, and the second sells 6 varieties of chocolates in 3 boxes of each type. How many different types of chocolates are there altogether?
```python def simple_math_problem() -> int: """ Two gourmet stores each sell 20 boxes of chocolates. The first store sells 4 types of chocolates in 5 boxes of each type, and the second sells 6 varieties of chocolates in 3 boxes of each type. How many different types of chocolates are there altogether? """ ...
Mike is comparing two types of packaging peanuts to use for shipping. The first contains 2 cubic feet of peanuts and costs $12. The second contains 3 cubic feet of peanuts and costs $18. What is the price per cubic foot in cents of the container with better value (lowest price per cubic foot)?
```python def simple_math_problem() -> float: """ Mike is comparing two types of packaging peanuts to use for shipping. The first contains 2 cubic feet of peanuts and costs $12. The second contains 3 cubic feet of peanuts and costs $18. What is the price per cubic foot in cents of the container with better valu...
Wendy is buying a cube of coal for her research project. The cube is 8 cm per side and the density of coal is 3.6 grams per cubic centimeter. She buys the coal for $1.6 per gram. How much did Wendy spend on the cube of coal?
```python def simple_math_problem() -> float: """ Wendy is buying a cube of coal for her research project. The cube is 8 cm per side and the density of coal is 3.6 grams per cubic centimeter. She buys the coal for $1.6 per gram. How much did Wendy spend on the cube of coal? """ side_length = 8 # cm ...
During a Black Friday sale, David bought a TV with a 15% discount. If he saved $150, what was the original price of the TV?
```python def simple_math_problem() -> float: """ During a Black Friday sale, David bought a TV with a 15% discount. If he saved $150, what was the original price of the TV? """ discount_amount = 150 # Amount saved due to discount discount_percentage = 0.15 # 15% discount as a decimal original...
John spent $15 on lunch on Monday, half that amount on Tuesday, and then triple that amount on Wednesday. If he spent $39 over the three days, how much did he spend on Tuesday?
```python def simple_math_problem() -> float: """ John spent $15 on lunch on Monday, half that amount on Tuesday, and then triple that amount on Wednesday. If he spent $39 over the three days, how much did he spend on Tuesday? """ monday_spent = 15 tuesday_spent = monday_spent / 2 wednesday_spen...
John needs an average of 80% or higher to pass his math class. His first five test scores were: 74, 82, 80, 85, and 87. What is the minimum score he needs to receive on the sixth test to achieve an average of 80% or higher?
```python def simple_math_problem() -> float: """ John needs an average of 80% or higher to pass his math class. His first five test scores were: 74, 82, 80, 85, and 87. What is the minimum score he needs to receive on the sixth test to achieve an average of 80% or higher? """ test_score_1 = 74 test...
A pizza has 8 slices. If 3 people share the pizza equally, how many slices will each person get?
```python def simple_math_problem() -> float: """ A pizza has 8 slices. If 3 people share the pizza equally, how many slices will each person get? """ total_slices = 8 number_of_people = 3 slices_per_person = total_slices / number_of_people result = slices_per_person return result prin...
A phone plan costs $30 per month plus $0.10 per minute. If you use the phone for 280 minutes in a month, how much will your bill be?
```python def simple_math_problem() -> float: """ A phone plan costs $30 per month plus $0.10 per minute. If you use the phone for 280 minutes in a month, how much will your bill be? """ base_monthly_cost = 30.0 # base monthly cost in dollars cost_per_minute = 0.10 # cost per minute in dollars ...
Connor is building a brick mailbox. Each wall of the mailbox is 14 bricks long, 6 bricks high, and 2 bricks deep. How many bricks does Connor need to complete the mailbox?
```python def simple_math_problem() -> int: """ Connor is building a brick mailbox. Each wall of the mailbox is 14 bricks long, 6 bricks high, and 2 bricks deep. How many bricks does Connor need to complete the mailbox? """ wall_length = 14 wall_height = 6 wall_depth = 2 # Calculate the number of bricks in one wall br...
Jenny wants to buy some cupcakes for a party. For every 3 cupcakes she buys, she gets 1 for free. For every 5 cupcakes she buys, she gets 2 for free. If she buys 30 cupcakes in total, how many cupcakes will she get for free?
```python def simple_math_problem() -> int: """ Jenny wants to buy some cupcakes for a party. For every 3 cupcakes she buys, she gets 1 for free. For every 5 cupcakes she buys, she gets 2 for free. If she buys 30 cupcakes in total, how many cupcakes will she get for free? """ total_cupcakes_bought = 30 ...
Oscar has 180 coins. They are all either pennies, nickels, or dimes. 40% of them are pennies, 30% of them are nickels, and the rest are dimes. How much money does he have in total?
```python def simple_math_problem() -> float: """ Oscar has 180 coins. They are all either pennies, nickels, or dimes. 40% of them are pennies, 30% of them are nickels, and the rest are dimes. How much money does he have in total? """ total_coins = 180 pennies_percentage = 0.4 nickels_percentage...
Maria needs to fill her car with gas. Her car has a 20-gallon gas tank and gas costs $3.00 per gallon. How much will Maria pay to fill her tank, including tax?
```python def simple_math_problem() -> float: """ Maria needs to fill her car with gas. Her car has a 20-gallon gas tank and gas costs $3.00 per gallon. How much will Maria pay to fill her tank, including tax? """ tank_capacity = 20 # gallons gas_cost_per_gallon = 3.00 # dollars total_gas_cost...
In May, the river flowing through Moreland is 2 feet deep. By June, the river is three times deeper than it was in May. By the end of July, the river is twice as deep as it was in June. How many feet deep is the river at the end of July?
```python def simple_math_problem() -> float: """ In May, the river flowing through Moreland is 2 feet deep. By June, the river is three times deeper than it was in May. By the end of July, the river is twice as deep as it was in June. How many feet deep is the river at the end of July? """ may_depth = ...
If you can buy 3 watermelons or 15 peaches for the same price, and you buy 60 fruits split evenly between watermelons, peaches, and apples, where 1 apple costs $0.25, what is the total cost?
```python def simple_math_problem() -> float: """ If you can buy 3 watermelons or 15 peaches for the same price, and you buy 60 fruits split evenly between watermelons, peaches, and apples, where 1 apple costs $0.25, what is the total cost? """ # Given information total_fruits = 60 apple_cost = ...
If a car travels at 60 miles per hour, how many miles will it travel in 4.5 hours?
```python def simple_math_problem() -> float: """ If a car travels at 60 miles per hour, how many miles will it travel in 4.5 hours? """ speed_mph = 60 # speed in miles per hour time_hours = 4.5 # time in hours distance_traveled = speed_mph * time_hours # calculate distance traveled resul...
-Write each new question and its program in a new cell Possible new questions and programs are: Ella bought a pack of 30 stickers for her birthday. She gave 5 stickers to her best friend, Anna. Then she used 4 stickers to decorate her notebook. The next day, she used 6 more stickers to make a card for her mom. The day ...
```python def simple_math_problem() -> int: """ Ella bought a pack of 30 stickers for her birthday. She gave 5 stickers to her best friend, Anna. Then she used 4 stickers to decorate her notebook. The next day, she used 6 more stickers to make a card for her mom. The day after that, she used 3 less than half as...
The Smithville Army Base has 5000 more bullets than the Johnsonville Army Base and also has 1500 war turrets less than twice the amount the Johnsonville Army Base has. The Smithville Army Base has 20 times as many gas masks as the Johnsonville Army Base. If Johnsonville has 10000 war supplies, how many war supplies doe...
```python def simple_math_problem() -> int: """ The Smithville Army Base has 5000 more bullets than the Johnsonville Army Base and also has 1500 war turrets less than twice the amount the Johnsonville Army Base has. The Smithville Army Base has 20 times as many gas masks as the Johnsonville Army Base. If Johnso...
If a car gets 30 miles per gallon on a round trip of 400 miles, what is the average number of gallons used?
```python def simple_math_problem() -> float: """ If a car gets 30 miles per gallon on a round trip of 400 miles, what is the average number of gallons used? """ miles_per_gallon = 30 total_miles = 400 total_gallons_used = total_miles / miles_per_gallon result = total_gallons_used retur...
At a store, the price of a t-shirt is $5 more than twice the price of a hat. If the price of a hat is $8, what is the price of a t-shirt?
```python def simple_math_problem() -> float: """ At a store, the price of a t-shirt is $5 more than twice the price of a hat. If the price of a hat is $8, what is the price of a t-shirt? """ price_of_hat = 8 twice_price_of_hat = 2 * price_of_hat additional_cost = 5 result = twice_price_of_h...
A pizza has a diameter of 16 inches. How much pepperoni is needed to cover the entire pizza, if 1 square inch of the pizza is covered for every 6 square inches of pepperoni?
```python import math def simple_math_problem() -> float: """ A pizza has a diameter of 16 inches. How much pepperoni is needed to cover the entire pizza, if 1 square inch of the pizza is covered for every 6 square inches of pepperoni? """ pizza_diameter = 16 # inches pizza_radius = pizza_diameter...
Chris wants to buy a new phone that costs $600. To be able to pay this price, he gets a loan from the bank, at a rate of 10%. He already has $200 saved and he pays an additional $100 right away, how much money does he still need to loan from the bank?
```python def simple_math_problem() -> float: """ Chris wants to buy a new phone that costs $600. To be able to pay this price, he gets a loan from the bank, at a rate of 10%. He already has $200 saved and he pays an additional $100 right away, how much money does he still need to loan from the bank? """ ...
Sarah buys 3 packs of cookies that have 30 cookies each. She had 20 cookies already. She finishes all the cookies in 5 days. How many cookies does she eat a day?
```python def simple_math_problem() -> float: """ Sarah buys 3 packs of cookies that have 30 cookies each. She had 20 cookies already. She finishes all the cookies in 5 days. How many cookies does she eat a day? """ packs_of_cookies = 3 cookies_per_pack = 30 initial_cookies = 20 total_cookie...
Student: A car travels 200 miles in 4 hours. If it maintains a constant speed, how far will it travel in 7 hours?
```python def simple_math_problem() -> float: """ A car travels 200 miles in 4 hours. If it maintains a constant speed, how far will it travel in 7 hours? """ distance_traveled_initially = 200 # miles time_taken_initially = 4 # hours time_taken_later = 7 # hours # Calculate the const...
Sarah has a pine tree that grows at the rate of fifty centimeters every four weeks. If the pine tree is currently 3 meters tall, how tall, in centimeters, will the pine tree be in 5 months?
```python def simple_math_problem() -> float: """ Sarah has a pine tree that grows at the rate of fifty centimeters every four weeks. If the pine tree is currently 3 meters tall, how tall, in centimeters, will the pine tree be in 5 months? """ # Convert the initial height from meters to centimeters ...
Sam has a pet store. Every day, he adds 4 animals. But every 6 days, he sells 2 animals. If Sam started with 20 animals, after how many days will he have a total of 50 animals?
```python def simple_math_problem() -> float: """ Sam has a pet store. Every day, he adds 4 animals. But every 6 days, he sells 2 animals. If Sam started with 20 animals, after how many days will he have a total of 50 animals? """ initial_animals = 20 target_animals = 50 daily_animal_addition = ...
John's cake recipe requires 2.5 cups of flour, 1 cup of sugar, and 1 cup of milk. If he wants to make enough batter for 24 cupcakes, how many tablespoons of flour, sugar, and milk does John need to use?
```python def simple_math_problem() -> dict: """ John's cake recipe requires 2.5 cups of flour, 1 cup of sugar, and 1 cup of milk. If he wants to make enough batter for 24 cupcakes, how many tablespoons of flour, sugar, and milk does John need to use? """ # Define the ingredients and their quantities in...
There are 20 students in a class and each student has 4 pencils. How many pencils are there in total?
```python def simple_math_problem() -> int: """ There are 20 students in a class and each student has 4 pencils. How many pencils are there in total? """ total_students = 20 pencils_per_student = 4 total_pencils = total_students * pencils_per_student result = total_pencils return result...
Student: Bill bought 10 boxes of strawberries. Each box of strawberries cost $2.95. If Bill paid with a $20 bill, how much change would he receive?
```python def simple_math_problem() -> float: """ Bill bought 10 boxes of strawberries. Each box of strawberries cost $2.95. If Bill paid with a $20 bill, how much change would he receive? """ boxes_of_strawberries = 10 cost_per_box = 2.95 total_cost = boxes_of_strawberries * cost_per_box am...
John wants to buy a gaming console that costs $450. He can pay $150 every month without interest. How many months will it take him to pay in full?
```python def simple_math_problem() -> float: """ John wants to buy a gaming console that costs $450. He can pay $150 every month without interest. How many months will it take him to pay in full? """ console_cost = 450 monthly_payment = 150 months_to_pay = console_cost / monthly_payment res...
David is painting a fence. He has seven hours to complete the task, and the fence is 80 meters long. In the first hour, David paints 8 meters. The second hour he paints 10 meters. How many meters of fence will David need to paint per hour to finish the job?
```python def simple_math_problem() -> float: """ David is painting a fence. He has seven hours to complete the task, and the fence is 80 meters long. In the first hour, David paints 8 meters. The second hour he paints 10 meters. How many meters of fence will David need to paint per hour to finish the job? ...
A playground has two sections: a sandbox and a slide. There are 35 children playing in the sandbox and 25 children playing on the slide. If 15 children are playing on both, how many children are playing in total?
```python def simple_math_problem() -> int: """ A playground has two sections: a sandbox and a slide. There are 35 children playing in the sandbox and 25 children playing on the slide. If 15 children are playing on both, how many children are playing in total? """ children_in_sandbox = 35 children_on_slide = 25 childre...
Student: Jake is painting his basement. The basement has four walls that are 10 feet tall. The dimensions of two of the walls are 30 feet by 12 feet and the dimensions of the other two walls are 25 feet by 12 feet. If one gallon of paint covers 450 square feet, how many gallons of paint does Jake need?
```python def simple_math_problem() -> float: """ Student: Jake is painting his basement. The basement has four walls that are 10 feet tall. The dimensions of two of the walls are 30 feet by 12 feet and the dimensions of the other two walls are 25 feet by 12 feet. If one gallon of paint covers 450 square feet, ...
In a bag of 80 marbles, 10% of them are white. If Tom can grab 20 marbles at a time, how many times does he need to grab them to obtain 32 white marbles?
```python def simple_math_problem() -> float: """ In a bag of 80 marbles, 10% of them are white. If Tom can grab 20 marbles at a time, how many times does he need to grab them to obtain 32 white marbles? """ total_marbles = 80 white_marbles_percentage = 0.1 marbles_grabbed_per_time = 20 whit...
A butcher charges $5.00 per pound for steak. If you buy 2.5 pounds of steak, how much will it cost?
```python def simple_math_problem() -> float: """ A butcher charges $5.00 per pound for steak. If you buy 2.5 pounds of steak, how much will it cost? """ price_per_pound = 5.00 pounds_of_steak = 2.5 total_cost = price_per_pound * pounds_of_steak result = total_cost return result print(...
Mr. Brown lent $15 to his friend, John. John spent $5. How much money did John give back to Mr. Brown, if he had half the amount of what he borrowed left with him?
```python def simple_math_problem() -> float: """ Mr. Brown lent $15 to his friend, John. John spent $5. How much money did John give back to Mr. Brown, if he had half the amount of what he borrowed left with him? """ amount_borrowed = 15 amount_spent = 5 amount_left = amount_borrowed - amount_s...
If John can paint a room in 5 hours and Mary can paint the same room in 3 hours, how long would it take them to paint the room if they worked together?
```python def simple_math_problem() -> float: """ If John can paint a room in 5 hours and Mary can paint the same room in 3 hours, how long would it take them to paint the room if they worked together? """ john_hours_to_paint = 5 mary_hours_to_paint = 3 john_rate = 1 / john_hours_to_paint # rat...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
11