1b-sft-dataset / test.jsonl
andro124543's picture
Initial upload: 5,235-sample ShareGPT SFT dataset
4b6e0b8 verified
Raw
History Blame Contribute Delete
43.8 kB
{"conversations": [{"from": "human", "value": "Five people sit in a row of five seats. Chris sits next to Ben Ben sits next to Dan Dan sits next to Alex Alex sits next to Finn Chris sits at one end of the row. Which seat is Finn in?"}, {"from": "gpt", "value": "Starting from Chris at one end and following the 'next to' clues fixes the whole row. Finn is in seat 5."}]}
{"conversations": [{"from": "human", "value": "Solve for x: x/8 = 9"}, {"from": "gpt", "value": "Multiply both sides by 8: x = 9 × 8 = 72."}]}
{"conversations": [{"from": "human", "value": "Write a Python function squares that takes a list of numbers and returns a new list with each number squared. For example, calling squares([1, 59, 18, -24]) should return [1, 3481, 324, 576]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef squares(numbers):\n return [x * x for x in numbers]\n```\n\nThe comprehension builds a new list of squares and leaves the original untouched."}]}
{"conversations": [{"from": "human", "value": "What is the difference between a jab and a cross in boxing?"}, {"from": "gpt", "value": "The jab is a quick, straight punch thrown with the lead hand (left for orthodox fighters). It's not a power punch — its job is range finding, setting up combinations, and keeping the opponent honest. The cross is a straight punch thrown with the rear hand, and it's one of your power punches: you rotate your hips and shoulders into it. Rule of thumb: jab sets it up, cross lands it."}]}
{"conversations": [{"from": "human", "value": "Write a Python function backwards that takes a string and returns it reversed. For example, calling backwards('bih') should return 'hib'."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef backwards(text):\n return text[::-1]\n```\n\nThe slice [::-1] walks the string from the end to the start — the classic Python idiom."}]}
{"conversations": [{"from": "human", "value": "Write a Python function greatest_common_divisor that takes two positive integers and returns their greatest common divisor. For example, calling greatest_common_divisor(8, 28) should return 4."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef greatest_common_divisor(first, right):\n while right:\n first, right = right, first % right\n return first\n```\n\nEuclid's algorithm: repeated remainder until it hits zero — thousands of years old and still optimal."}]}
{"conversations": [{"from": "human", "value": "What is 35% of 80?"}, {"from": "gpt", "value": "35% of 80 = 80 × 35/100 = 28."}]}
{"conversations": [{"from": "human", "value": "The average of 25, 37, 50, 22, 19 and one more number is 72. What is the missing number?"}, {"from": "gpt", "value": "Total of all 6 numbers = 72 × 6 = 432. Current sum = 153, so the missing number is 432 - 153 = 279."}]}
{"conversations": [{"from": "human", "value": "Write a Python function char_count_total that takes a string and returns its length. For example, calling char_count_total('gfeicdhfda') should return 10."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef char_count_total(s):\n return len(s)\n```\n\nlen() works on any sequence — strings, lists, tuples — and counts its items."}]}
{"conversations": [{"from": "human", "value": "85 is what percent of 100?"}, {"from": "gpt", "value": "85/100 × 100 = 85%."}]}
{"conversations": [{"from": "human", "value": "Write a Python function count_negatives that takes a list of numbers and returns how many of them are negative. For example, calling count_negatives([26, -20, 14, 44, 49, 7]) should return 1."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef count_negatives(lst):\n return sum(1 for x in lst if x < 0)\n```\n\nThe generator expression yields a 1 for each negative value and sum() adds them up."}]}
{"conversations": [{"from": "human", "value": "Write a Python function times_two that takes a list of numbers and returns a new list with each number doubled. For example, calling times_two([22, 52, 58, -30, 15, 52, 54]) should return [44, 104, 116, -60, 30, 104, 108]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef times_two(values):\n return [x * 2 for x in values]\n```\n\nThe comprehension builds the doubled list without modifying the original."}]}
{"conversations": [{"from": "human", "value": "How many minutes are in 180 seconds?"}, {"from": "gpt", "value": "60 seconds = 1 minute, so the answer is 3."}]}
{"conversations": [{"from": "human", "value": "What does 33 times 22 equal?"}, {"from": "gpt", "value": "33 × 22 = 33 × 20 + 33 × 2 = 660 + 66 = 726."}]}
{"conversations": [{"from": "human", "value": "What is the study of the stars called?"}, {"from": "gpt", "value": "Astronomy."}]}
{"conversations": [{"from": "human", "value": "Decrease 360 by 35%. What is the result?"}, {"from": "gpt", "value": "A decrease of 35% removes 126, so the result is 360 - 126 = 234."}]}
{"conversations": [{"from": "human", "value": "What does RAM stand for?"}, {"from": "gpt", "value": "Random Access Memory."}]}
{"conversations": [{"from": "human", "value": "A motorcycle consumes 5 L per 100 km and has a 75-litre tank that is 60% full. How far can it travel on the fuel it has?"}, {"from": "gpt", "value": "Fuel available: 60% of 75 = 45 litres. Range: 45 ÷ 5 × 100 = 900 km."}]}
{"conversations": [{"from": "human", "value": "How do capacitive touchscreens work?"}, {"from": "gpt", "value": "A capacitive touchscreen is a glass panel coated with a transparent conductive layer that holds a tiny electric charge. Your finger is slightly conductive, and when it touches the screen, it draws a small current at that point — the screen's controller detects the voltage drop and computes the exact location. That's why capacitive screens need skin or a conductive stylus; regular gloves don't work. Older resistive screens instead detect physical pressure between two layers."}]}
{"conversations": [{"from": "human", "value": "You know that Eva is shorter than Finn, Finn is shorter than Jack, Jack is shorter than Gina, Gina is shorter than Iris. Who is the second tallest?"}, {"from": "gpt", "value": "Putting the heights in order: Eva, Finn, Jack, Gina, Iris (shortest to tallest). So the second tallest is Gina."}]}
{"conversations": [{"from": "human", "value": "What is 45% of 180?"}, {"from": "gpt", "value": "45% of 180 = 180 × 45/100 = 81."}]}
{"conversations": [{"from": "human", "value": "You know that Jack is shorter than Ben, Ben is shorter than Dan, Dan is shorter than Iris. Who is the second tallest?"}, {"from": "gpt", "value": "Putting the heights in order: Jack, Ben, Dan, Iris (shortest to tallest). So the second tallest is Dan."}]}
{"conversations": [{"from": "human", "value": "Convert 126 m/s to km/h."}, {"from": "gpt", "value": "1 m/s = 3.6 km/h, so the answer is 453."}]}
{"conversations": [{"from": "human", "value": "What is 38 multiplied by 20?"}, {"from": "gpt", "value": "38 × 20 = 38 × 2 × 10 = 76 × 10 = 760."}]}
{"conversations": [{"from": "human", "value": "The sum of a number and 50 is 54. What is the number?"}, {"from": "gpt", "value": "Number = 54 - 50 = 4."}]}
{"conversations": [{"from": "human", "value": "A motorcycle jacket costs €160. A 25% discount is applied, then a €20 voucher. What is the final price?"}, {"from": "gpt", "value": "After 25% off: €160 × 0.75 = €120. Then minus the €20 voucher: €120 − €20 = €100."}]}
{"conversations": [{"from": "human", "value": "Write a Python function prime_check that takes a positive integer and returns True if it is prime, False otherwise. For example, calling prime_check(17) should return True."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef prime_check(x):\n if x < 2:\n return False\n for i in range(2, int(x ** 0.5) + 1):\n if x % i == 0:\n return False\n return True\n```\n\nYou only need to test divisors up to the square root — anything larger pairs with a smaller factor."}]}
{"conversations": [{"from": "human", "value": "What is 15 multiplied by 25?"}, {"from": "gpt", "value": "15 × 25 = 15 × 20 + 15 × 5 = 300 + 75 = 375."}]}
{"conversations": [{"from": "human", "value": "Write a haiku about training at the gym."}, {"from": "gpt", "value": "Iron stacked with intent,\nBreath sharp as the burn arrives,\nQuiet victory."}]}
{"conversations": [{"from": "human", "value": "Write a Python function unique_items that takes a list and returns a new list with duplicates removed, keeping the original order. For example, calling unique_items([30, 17, 47, 4]) should return [30, 17, 47, 4]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef unique_items(lst):\n seen = set()\n result = []\n for item in lst:\n if item not in seen:\n seen.add(item)\n result.append(item)\n return result\n```\n\nThe set gives O(1) membership checks; appending only first occurrences preserves order."}]}
{"conversations": [{"from": "human", "value": "Lucas buys 3 apples at €1.20 each and 3 cans of tuna at €1.60 each, and pays with a €50 note. How much change does Lucas get?"}, {"from": "gpt", "value": "First the total: 3 × €1.20 + 3 × €1.60 = €8.40. Then the change: €50 − €8.40 = €41.60."}]}
{"conversations": [{"from": "human", "value": "Write a Python function backwards that takes a string and returns it reversed. For example, calling backwards('ehehaicge') should return 'egciahehe'."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef backwards(s):\n return s[::-1]\n```\n\nThe slice [::-1] walks the string from the end to the start — the classic Python idiom."}]}
{"conversations": [{"from": "human", "value": "Five people sit in a row of five seats. Ben sits next to Gina Gina sits next to Jack Jack sits next to Finn Finn sits next to Dan Ben sits at one end of the row. Which seat is Jack in?"}, {"from": "gpt", "value": "Starting from Ben at one end and following the 'next to' clues fixes the whole row. Jack is in seat 3."}]}
{"conversations": [{"from": "human", "value": "Write a Python function multiples that takes a number n and a multiplier k, and returns a list of the first n multiples of k. For example, calling multiples(5, 5) should return [5, 10, 15, 20, 25]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef multiples(n, k):\n return [k * i for i in range(1, n + 1)]\n```\n\nThe comprehension builds exactly n terms; starting at i=1 skips the useless 0."}]}
{"conversations": [{"from": "human", "value": "Find the next three terms of the sequence: 3, 6, 9, 12, ..."}, {"from": "gpt", "value": "The common difference is 3, so the next three terms are 15, 18, 21."}]}
{"conversations": [{"from": "human", "value": "Find the next two terms of the sequence: 3, 6, 12, 24, ..."}, {"from": "gpt", "value": "Each term is multiplied by 2, so the next two terms are 48, 96."}]}
{"conversations": [{"from": "human", "value": "Work out 808 - 671."}, {"from": "gpt", "value": "808 - 671 = 137. The difference is 137."}]}
{"conversations": [{"from": "human", "value": "Write a Python function first_multiples that takes a number n and a multiplier k, and returns a list of the first n multiples of k. For example, calling first_multiples(5, 3) should return [3, 6, 9, 12, 15]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef first_multiples(n, k):\n return [k * i for i in range(1, n + 1)]\n```\n\nThe comprehension builds exactly n terms; starting at i=1 skips the useless 0."}]}
{"conversations": [{"from": "human", "value": "Write 10/10 as a decimal."}, {"from": "gpt", "value": "Dividing 10 by 10 gives 1."}]}
{"conversations": [{"from": "human", "value": "What is 75% of 400?"}, {"from": "gpt", "value": "75% of 400 = 400 × 75/100 = 300."}]}
{"conversations": [{"from": "human", "value": "What is 30% of 280?"}, {"from": "gpt", "value": "30% of 280 = 280 × 30/100 = 84."}]}
{"conversations": [{"from": "human", "value": "What is 5 multiplied by 89?"}, {"from": "gpt", "value": "5 × 89 = 5 × 80 + 5 × 9 = 400 + 45 = 445."}]}
{"conversations": [{"from": "human", "value": "What does 139 plus 670 equal?"}, {"from": "gpt", "value": "139 + 670 = 809. The sum is 809."}]}
{"conversations": [{"from": "human", "value": "What does 204 minus 83 equal?"}, {"from": "gpt", "value": "204 - 83 = 121. The difference is 121."}]}
{"conversations": [{"from": "human", "value": "Five people sit in a row of five seats. Dan sits next to Chris Chris sits next to Alex Alex sits next to Iris Iris sits next to Gina Dan sits at one end of the row. Which seat is Alex in?"}, {"from": "gpt", "value": "Starting from Dan at one end and following the 'next to' clues fixes the whole row. Alex is in seat 3."}]}
{"conversations": [{"from": "human", "value": "True or false: The Amazon rainforest produces about 20% of the world's oxygen."}, {"from": "gpt", "value": "True. True — though much of it is consumed by the forest itself."}]}
{"conversations": [{"from": "human", "value": "Calculate: 420 ÷ 6"}, {"from": "gpt", "value": "420 ÷ 6 = 70, because 70 × 6 = 420."}]}
{"conversations": [{"from": "human", "value": "A machine produces 108 bottles in 4 minutes. How many bottles does it produce per minute?"}, {"from": "gpt", "value": "108 ÷ 4 = 27 bottles per minute."}]}
{"conversations": [{"from": "human", "value": "What is the average (mean) of 42, 37, 11, 33, 90, 75?"}, {"from": "gpt", "value": "Sum = 288, count = 6, so mean = 288 ÷ 6 = 48."}]}
{"conversations": [{"from": "human", "value": "Simplify the fraction 25/30."}, {"from": "gpt", "value": "Both numbers divide by 5: 25 ÷ 5 = 5 and 30 ÷ 5 = 6, so 25/30 = 5/6."}]}
{"conversations": [{"from": "human", "value": "Write a Python function common_items that takes two lists and returns a list of the values they have in common, without duplicates. For example, calling common_items([13, 29, 10, 3, 18], [24, 21, 15, 25]) should return []."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef common_items(first, second):\n return list(set(first) & set(second))\n```\n\nConverting both to sets makes the intersection a single & operation; converting back to a list is just form."}]}
{"conversations": [{"from": "human", "value": "You know that Gina is shorter than Hugo, Hugo is shorter than Ben, Ben is shorter than Jack. Who is the second tallest?"}, {"from": "gpt", "value": "Putting the heights in order: Gina, Hugo, Ben, Jack (shortest to tallest). So the second tallest is Ben."}]}
{"conversations": [{"from": "human", "value": "Write a Python function shared that takes two lists and returns a list of the values they have in common, without duplicates. For example, calling shared([26, 25, 1], [5, 5, 25, 30]) should return [25]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef shared(left, y):\n return list(set(left) & set(y))\n```\n\nConverting both to sets makes the intersection a single & operation; converting back to a list is just form."}]}
{"conversations": [{"from": "human", "value": "A rider travels at 80 km/h for 1 hours, then at 60 km/h for 4 hours. What is the total distance traveled?"}, {"from": "gpt", "value": "First leg: 80 × 1 = 80 km. Second leg: 60 × 4 = 240 km. Total: 80 + 240 = 320 km."}]}
{"conversations": [{"from": "human", "value": "Write a Python function find_gcd that takes two positive integers and returns their greatest common divisor. For example, calling find_gcd(38, 16) should return 2."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef find_gcd(first, right):\n while right:\n first, right = right, first % right\n return first\n```\n\nEuclid's algorithm: repeated remainder until it hits zero — thousands of years old and still optimal."}]}
{"conversations": [{"from": "human", "value": "Write a Python function capitalize_words that takes a string and returns it with each word capitalized. For example, calling capitalize_words('world quick jumps hello quick') should return 'World Quick Jumps Hello Quick'."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef capitalize_words(s):\n return s.title()\n```\n\nstr.title() capitalizes the first letter of every word in one call."}]}
{"conversations": [{"from": "human", "value": "A boxing match has 5 rounds of 3 minutes each, with 1 minute of rest between rounds. How long does the whole match last from the first bell to the last bell?"}, {"from": "gpt", "value": "5 × 3 minutes of fighting = 15 minutes, plus 4 minutes of rest between rounds: 15 + 4 = 19 minutes."}]}
{"conversations": [{"from": "human", "value": "This function should return the sum of a list of numbers, but it has a bug:\n\n```python\ndef total(lst):\n total = 0\n for x in lst:\n total = x\n return total\n```\n\nFind and fix the bug."}, {"from": "gpt", "value": "The bug is: total = x overwrites the accumulator on every iteration, so the function returns only the LAST element instead of the sum. It must be total += x. Here's the fixed version:\n\n```python\ndef total(lst):\n total = 0\n for x in lst:\n total += x\n return total\n```"}]}
{"conversations": [{"from": "human", "value": "A motorcycle jacket costs €100. A 25% discount is applied, then a €15 voucher. What is the final price?"}, {"from": "gpt", "value": "After 25% off: €100 × 0.75 = €75. Then minus the €15 voucher: €75 − €15 = €60."}]}
{"conversations": [{"from": "human", "value": "Calculate: 300 ÷ 6"}, {"from": "gpt", "value": "300 ÷ 6 = 50, because 50 × 6 = 300."}]}
{"conversations": [{"from": "human", "value": "All motorcycles are vehicles. Rocky is a motorcycle. Is Rocky a vehicle?"}, {"from": "gpt", "value": "Yes. The first statement says every motorcycle belongs to vehicles, and Rocky is a motorcycle. So Rocky must be a vehicle."}]}
{"conversations": [{"from": "human", "value": "Simplify the fraction 49/140."}, {"from": "gpt", "value": "Both numbers divide by 7: 49 ÷ 7 = 7 and 140 ÷ 7 = 20, so 49/140 = 7/20."}]}
{"conversations": [{"from": "human", "value": "What is the study of weather called?"}, {"from": "gpt", "value": "Meteorology."}]}
{"conversations": [{"from": "human", "value": "A motorcycle travels at 50 km/h for 2 hours. How far does it travel?"}, {"from": "gpt", "value": "Distance = speed × time = 50 × 2 = 100 km."}]}
{"conversations": [{"from": "human", "value": "Solve for x: 6x - 12 = 24"}, {"from": "gpt", "value": "Add 12 to both sides: 6x = 36. Divide by 6: x = 36/6 = 6."}]}
{"conversations": [{"from": "human", "value": "Write a Python function even_numbers that takes a list of numbers and returns a new list with only the even numbers. For example, calling even_numbers([-20, 39, -11, 11]) should return [-20]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef even_numbers(lst):\n return [x for x in lst if x % 2 == 0]\n```\n\nA list comprehension with a condition is the cleanest filter in Python."}]}
{"conversations": [{"from": "human", "value": "A motorcycle travels at 110 km/h for 2.5 hours. How far does it travel?"}, {"from": "gpt", "value": "Distance = speed × time = 110 × 2.5 = 275.0 km."}]}
{"conversations": [{"from": "human", "value": "Calculate: 880 - 179"}, {"from": "gpt", "value": "880 - 179 = 701. The difference is 701."}]}
{"conversations": [{"from": "human", "value": "A boxer trains 5 days a week and spars 3 rounds of 4 minutes each per session. How many minutes of sparring is that per week?"}, {"from": "gpt", "value": "Per session: 3 × 4 = 12 minutes. Per week: 5 × 12 = 60 minutes."}]}
{"conversations": [{"from": "human", "value": "Simplify the fraction 92/96."}, {"from": "gpt", "value": "Both numbers divide by 4: 92 ÷ 4 = 23 and 96 ÷ 4 = 24, so 92/96 = 23/24."}]}
{"conversations": [{"from": "human", "value": "Solve for x: 5x - 24 = 26"}, {"from": "gpt", "value": "Add 24 to both sides: 5x = 50. Divide by 5: x = 50/5 = 10."}]}
{"conversations": [{"from": "human", "value": "Calculate: 533 + 78"}, {"from": "gpt", "value": "533 + 78 = 611. The sum is 611."}]}
{"conversations": [{"from": "human", "value": "A dinner bill of €288.00 is split equally among 6 people. How much does each person pay?"}, {"from": "gpt", "value": "€288.00 ÷ 6 = €48.00 each."}]}
{"conversations": [{"from": "human", "value": "Calculate: 356 + 355"}, {"from": "gpt", "value": "356 + 355 = 711. The sum is 711."}]}
{"conversations": [{"from": "human", "value": "Solve for x: x/6 = 10"}, {"from": "gpt", "value": "Multiply both sides by 6: x = 10 × 6 = 60."}]}
{"conversations": [{"from": "human", "value": "A machine produces 66 bottles in 3 minutes. How many bottles does it produce per minute?"}, {"from": "gpt", "value": "66 ÷ 3 = 22 bottles per minute."}]}
{"conversations": [{"from": "human", "value": "Write a Python function first_index that takes a list and a value, and returns the index of the first occurrence of the value, or -1 if it's not there. For example, calling first_index([-30, 20, -1, 48, -6, -29]) should return the correct result."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef first_index(lst, target):\n for i, item in enumerate(lst):\n if item == target:\n return i\n return -1\n```\n\nenumerate() gives you the index alongside each item; returning -1 is the conventional 'not found' signal."}]}
{"conversations": [{"from": "human", "value": "A rectangular wall is 12 m wide and 9 m tall. Square tiles of side 2 m are used to cover it completely. How many tiles are needed?"}, {"from": "gpt", "value": "Wall area: 12 × 9 = 108 m². Tile area: 2 × 2 = 4 m². Tiles needed: 108 ÷ 4 = 27."}]}
{"conversations": [{"from": "human", "value": "Find the next three terms of the sequence: 15, 20, 25, 30, ..."}, {"from": "gpt", "value": "The common difference is 5, so the next three terms are 35, 40, 45."}]}
{"conversations": [{"from": "human", "value": "All salmon are fish. All sharks are fish. Are all salmon sharks?"}, {"from": "gpt", "value": "Not necessarily. Both groups are part of fish, but that doesn't mean they overlap. For example, salmon and sharks are both fish, yet they are different things."}]}
{"conversations": [{"from": "human", "value": "What is 80% of 60?"}, {"from": "gpt", "value": "80% of 60 = 60 × 80/100 = 48."}]}
{"conversations": [{"from": "human", "value": "Tom is 5 times as old as his sister. His sister is 9 years old. How old is Tom?"}, {"from": "gpt", "value": "9 × 5 = 45 years old."}]}
{"conversations": [{"from": "human", "value": "Write a Python function fact that takes a positive integer n and returns the factorial of n (n!). For example, calling fact(10) should return 3628800."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef fact(num):\n total = 1\n for i in range(2, num + 1):\n total *= i\n return total\n```\n\nAn iterative loop avoids recursion limits and is easy to read."}]}
{"conversations": [{"from": "human", "value": "Increase 260 by 40%. What is the result?"}, {"from": "gpt", "value": "An increase of 40% adds 104, so the result is 260 + 104 = 364."}]}
{"conversations": [{"from": "human", "value": "Write a Python function count_negatives that takes a list of numbers and returns how many of them are negative. For example, calling count_negatives([-6, -24, 17]) should return 2."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef count_negatives(lst):\n return sum(1 for x in lst if x < 0)\n```\n\nThe generator expression yields a 1 for each negative value and sum() adds them up."}]}
{"conversations": [{"from": "human", "value": "Calculate: 656 - 374"}, {"from": "gpt", "value": "656 - 374 = 282. The difference is 282."}]}
{"conversations": [{"from": "human", "value": "A motorcycle jacket costs €100. A 25% discount is applied, then a €10 voucher. What is the final price?"}, {"from": "gpt", "value": "After 25% off: €100 × 0.75 = €75. Then minus the €10 voucher: €75 − €10 = €65."}]}
{"conversations": [{"from": "human", "value": "A motorcycle travels at 50 km/h for 3 hours. How far does it travel?"}, {"from": "gpt", "value": "Distance = speed × time = 50 × 3 = 150 km."}]}
{"conversations": [{"from": "human", "value": "What is the average (mean) of 73, 28, 72, 60, 80?"}, {"from": "gpt", "value": "Sum = 313, count = 5, so mean = 313 ÷ 5 = 62.6."}]}
{"conversations": [{"from": "human", "value": "The average of 52, 17, 22 and one more number is 57. What is the missing number?"}, {"from": "gpt", "value": "Total of all 4 numbers = 57 × 4 = 228. Current sum = 91, so the missing number is 228 - 91 = 137."}]}
{"conversations": [{"from": "human", "value": "What is 35% of 140?"}, {"from": "gpt", "value": "35% of 140 = 140 × 35/100 = 49."}]}
{"conversations": [{"from": "human", "value": "The average of 49, 51, 30 and one more number is 76. What is the missing number?"}, {"from": "gpt", "value": "Total of all 4 numbers = 76 × 4 = 304. Current sum = 130, so the missing number is 304 - 130 = 174."}]}
{"conversations": [{"from": "human", "value": "You know that Alex is shorter than Hugo, Hugo is shorter than Chris, Chris is shorter than Finn. Who is the shortest?"}, {"from": "gpt", "value": "Putting the heights in order: Alex, Hugo, Chris, Finn (shortest to tallest). So the shortest is Alex."}]}
{"conversations": [{"from": "human", "value": "How many centimetres are in 5 m?"}, {"from": "gpt", "value": "1 m = 100 cm, so the answer is 500."}]}
{"conversations": [{"from": "human", "value": "Find the next three terms of the sequence: 18, 23, 28, 33, ..."}, {"from": "gpt", "value": "The common difference is 5, so the next three terms are 38, 43, 48."}]}
{"conversations": [{"from": "human", "value": "What does 87 times 5 equal?"}, {"from": "gpt", "value": "87 × 5 = 435."}]}
{"conversations": [{"from": "human", "value": "A motorcycle consumes 5 litres per 100 km and has a 15-litre tank. How far can it travel on a full tank?"}, {"from": "gpt", "value": "15 litres ÷ 5 litres per 100 km = 3, so it can travel 300 km."}]}
{"conversations": [{"from": "human", "value": "What is 126 - 52?"}, {"from": "gpt", "value": "126 - 52 = 74. The difference is 74."}]}
{"conversations": [{"from": "human", "value": "Convert 0°C to Fahrenheit."}, {"from": "gpt", "value": "°F = °C × 9/5 + 32, so the answer is 32."}]}
{"conversations": [{"from": "human", "value": "A dinner bill of €136.00 is split equally among 2 people. How much does each person pay?"}, {"from": "gpt", "value": "€136.00 ÷ 2 = €68.00 each."}]}
{"conversations": [{"from": "human", "value": "What does 409 plus 781 equal?"}, {"from": "gpt", "value": "409 + 781 = 1190. The sum is 1190."}]}
{"conversations": [{"from": "human", "value": "What is 886 - 48?"}, {"from": "gpt", "value": "886 - 48 = 838. The difference is 838."}]}
{"conversations": [{"from": "human", "value": "36 is what percent of 100?"}, {"from": "gpt", "value": "36/100 × 100 = 36%."}]}
{"conversations": [{"from": "human", "value": "Write a Python function format_time that takes a number of seconds and returns a string in 'H:MM:SS' format. For example, calling format_time(76073) should return '21:07:53'."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef format_time(secs):\n h = secs // 3600\n m = (secs % 3600) // 60\n s = secs % 60\n return f'{h}:{m:02d}:{s:02d}'\n```\n\nInteger division and modulo split the seconds; the :02d format pads minutes and seconds."}]}
{"conversations": [{"from": "human", "value": "What is the average (mean) of 28, 27, 14, 54, 59, 65?"}, {"from": "gpt", "value": "Sum = 247, count = 6, so mean = 247 ÷ 6 = 41.2."}]}
{"conversations": [{"from": "human", "value": "Write a Python function double_all that takes a list of numbers and returns a new list with each number doubled. For example, calling double_all([14, 30, -28, -24, 12]) should return [28, 60, -56, -48, 24]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef double_all(lst):\n return [x * 2 for x in lst]\n```\n\nThe comprehension builds the doubled list without modifying the original."}]}
{"conversations": [{"from": "human", "value": "Write a Python function is_positive that takes a number and returns True if it is positive. For example, calling is_positive(-1) should return False."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef is_positive(n):\n return n > 0\n```\n\nZero is neither positive nor negative — the strict > comparison handles that correctly."}]}
{"conversations": [{"from": "human", "value": "Convert 90 m/s to km/h."}, {"from": "gpt", "value": "1 m/s = 3.6 km/h, so the answer is 324."}]}
{"conversations": [{"from": "human", "value": "Write a Python function unique_items that takes a list and returns a new list with duplicates removed, keeping the original order. For example, calling unique_items([57, 60, 30]) should return [57, 60, 30]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef unique_items(values):\n seen = set()\n result = []\n for item in values:\n if item not in seen:\n seen.add(item)\n result.append(item)\n return result\n```\n\nThe set gives O(1) membership checks; appending only first occurrences preserves order."}]}
{"conversations": [{"from": "human", "value": "Calculate: 929 - 333"}, {"from": "gpt", "value": "929 - 333 = 596. The difference is 596."}]}
{"conversations": [{"from": "human", "value": "Find the next three terms of the sequence: 14, 23, 32, 41, ..."}, {"from": "gpt", "value": "The common difference is 9, so the next three terms are 50, 59, 68."}]}
{"conversations": [{"from": "human", "value": "Calculate: 814 ÷ 11"}, {"from": "gpt", "value": "814 ÷ 11 = 74, because 74 × 11 = 814."}]}
{"conversations": [{"from": "human", "value": "Write a Python function fact that takes a positive integer n and returns the factorial of n (n!). For example, calling fact(5) should return 120."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef fact(n):\n total = 1\n for i in range(2, n + 1):\n total *= i\n return total\n```\n\nAn iterative loop avoids recursion limits and is easy to read."}]}
{"conversations": [{"from": "human", "value": "All pianos are musical instruments. Rocky is a piano. Is Rocky a musical instrument?"}, {"from": "gpt", "value": "Yes. The first statement says every piano belongs to musical instruments, and Rocky is a piano. So Rocky must be a musical instrument."}]}
{"conversations": [{"from": "human", "value": "Calculate: 374 + 437"}, {"from": "gpt", "value": "374 + 437 = 811. The sum is 811."}]}
{"conversations": [{"from": "human", "value": "A motorcycle consumes 6 L per 100 km and has a 120-litre tank that is 60% full. How far can it travel on the fuel it has?"}, {"from": "gpt", "value": "Fuel available: 60% of 120 = 72 litres. Range: 72 ÷ 6 × 100 = 1200 km."}]}
{"conversations": [{"from": "human", "value": "Write a Python function squares that takes a list of numbers and returns a new list with each number squared. For example, calling squares([44, 31, 13, -9]) should return [1936, 961, 169, 81]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef squares(numbers):\n return [x * x for x in numbers]\n```\n\nThe comprehension builds a new list of squares and leaves the original untouched."}]}
{"conversations": [{"from": "human", "value": "Three times a number is 78. What is the number?"}, {"from": "gpt", "value": "Number = 78 ÷ 3 = 26."}]}
{"conversations": [{"from": "human", "value": "What is the average (mean) of 20, 31, 31, 31, 58, 24?"}, {"from": "gpt", "value": "Sum = 195, count = 6, so mean = 195 ÷ 6 = 32.5."}]}
{"conversations": [{"from": "human", "value": "What is 63 multiplied by 20?"}, {"from": "gpt", "value": "63 × 20 = 63 × 2 × 10 = 126 × 10 = 1260."}]}
{"conversations": [{"from": "human", "value": "Find the next three terms of the sequence: 2, 11, 20, 29, ..."}, {"from": "gpt", "value": "The common difference is 9, so the next three terms are 38, 47, 56."}]}
{"conversations": [{"from": "human", "value": "Work out 17 × 69."}, {"from": "gpt", "value": "17 × 69 = 17 × 60 + 17 × 9 = 1020 + 153 = 1173."}]}
{"conversations": [{"from": "human", "value": "What is 47 multiplied by 48?"}, {"from": "gpt", "value": "47 × 48 = 47 × 40 + 47 × 8 = 1880 + 376 = 2256."}]}
{"conversations": [{"from": "human", "value": "The sum of a number and 14 is 63. What is the number?"}, {"from": "gpt", "value": "Number = 63 - 14 = 49."}]}
{"conversations": [{"from": "human", "value": "A rider covers 240 km in 4 hours. What is the average speed?"}, {"from": "gpt", "value": "Average speed = distance ÷ time = 240 ÷ 4 = 60 km/h."}]}
{"conversations": [{"from": "human", "value": "What is 90% of 200?"}, {"from": "gpt", "value": "90% of 200 = 200 × 90/100 = 180."}]}
{"conversations": [{"from": "human", "value": "How many centimetres are in 50 m?"}, {"from": "gpt", "value": "1 m = 100 cm, so the answer is 5000."}]}
{"conversations": [{"from": "human", "value": "The sum of a number and 48 is 87. What is the number?"}, {"from": "gpt", "value": "Number = 87 - 48 = 39."}]}
{"conversations": [{"from": "human", "value": "Write 43/20 as a decimal."}, {"from": "gpt", "value": "Dividing 43 by 20 gives 2.15."}]}
{"conversations": [{"from": "human", "value": "What is 5% of 180?"}, {"from": "gpt", "value": "5% of 180 = 180 × 5/100 = 9."}]}
{"conversations": [{"from": "human", "value": "How does a radio work, simply?"}, {"from": "gpt", "value": "A radio station converts sound into an electrical signal and combines it with a carrier wave — a specific frequency, like 98.6 MHz. The station's antenna pumps that wave out in all directions at the speed of light. Your radio's antenna picks up a tiny slice of all the waves in the air, and a tuner filters out everything except the one frequency you selected. Then the receiver strips the carrier wave off, leaving the original sound signal, which it amplifies and sends to a speaker. So radio is really just sound hitched onto a wave that can travel through walls."}]}
{"conversations": [{"from": "human", "value": "How many centimetres are in 23 m?"}, {"from": "gpt", "value": "1 m = 100 cm, so the answer is 2300."}]}
{"conversations": [{"from": "human", "value": "Write a Python function is_anagram that takes two strings and returns True if they are anagrams of each other (same letters, ignoring case and spaces). For example, calling is_anagram('listen', 'tnisle') should return True."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef is_anagram(first, second):\n return sorted(first.replace(' ', '').lower()) == sorted(second.replace(' ', '').lower())\n```\n\nSorting both strings makes the comparison trivial — anagrams sort to identical letter lists."}]}
{"conversations": [{"from": "human", "value": "You know that Alex is shorter than Ben, Ben is shorter than Chris, Chris is shorter than Hugo, Hugo is shorter than Jack. Who is the second shortest?"}, {"from": "gpt", "value": "Putting the heights in order: Alex, Ben, Chris, Hugo, Jack (shortest to tallest). So the second shortest is Ben."}]}
{"conversations": [{"from": "human", "value": "A machine produces 798 bottles in 14 minutes. How many bottles does it produce per minute?"}, {"from": "gpt", "value": "798 ÷ 14 = 57 bottles per minute."}]}
{"conversations": [{"from": "human", "value": "Which is larger: 3/4 or 4/7?"}, {"from": "gpt", "value": "Cross-multiply: 3 × 7 = 21 vs 4 × 4 = 16. Since 21 is greater than 16, 3/4 is the larger one."}]}
{"conversations": [{"from": "human", "value": "Write a Python function num_words that takes a string and returns the number of words in it (words are separated by spaces). For example, calling num_words('jumps lazy fox over lazy') should return 5."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef num_words(text):\n return len(text.split())\n```\n\nsplit() with no arguments splits on any whitespace and drops empty pieces — exactly what we want."}]}
{"conversations": [{"from": "human", "value": "65 is what percent of 100?"}, {"from": "gpt", "value": "65/100 × 100 = 65%."}]}
{"conversations": [{"from": "human", "value": "Write a Python function title_case that takes a string and returns it with each word capitalized. For example, calling title_case('world world jumps') should return 'World World Jumps'."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef title_case(text):\n return text.title()\n```\n\nstr.title() capitalizes the first letter of every word in one call."}]}
{"conversations": [{"from": "human", "value": "What are you up to right now?"}, {"from": "gpt", "value": "Right now? I'm having a conversation with you — which, between us, is the most interesting thing on my schedule today. Before that I was helping someone with a recipe. It's a varied job. What are YOU up to?"}, {"from": "human", "value": "Just drinking coffee and procrastinating."}, {"from": "gpt", "value": "A classic combination. Coffee and procrastination go together like... well, like coffee and procrastination. I'd say enjoy it, but I'm contractually obligated to remind you that future-you would appreciate a 10-minute head start on whatever you're avoiding. Coffee first, though. Priorities."}]}
{"conversations": [{"from": "human", "value": "Write a Python function list_squares that takes a list of numbers and returns a new list with each number squared. For example, calling list_squares([-19, 37, 60, 47]) should return [361, 1369, 3600, 2209]."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef list_squares(lst):\n return [x * x for x in lst]\n```\n\nThe comprehension builds a new list of squares and leaves the original untouched."}]}
{"conversations": [{"from": "human", "value": "What is the most abundant element in the universe?"}, {"from": "gpt", "value": "Hydrogen."}]}
{"conversations": [{"from": "human", "value": "A motorcycle consumes 6 litres per 100 km and has a 42-litre tank. How far can it travel on a full tank?"}, {"from": "gpt", "value": "42 litres ÷ 6 litres per 100 km = 7, so it can travel 700 km."}]}
{"conversations": [{"from": "human", "value": "A machine produces 564 bottles in 12 minutes. How many bottles does it produce per minute?"}, {"from": "gpt", "value": "564 ÷ 12 = 47 bottles per minute."}]}
{"conversations": [{"from": "human", "value": "Calculate: 39 × 13"}, {"from": "gpt", "value": "39 × 13 = 39 × 10 + 39 × 3 = 390 + 117 = 507."}]}
{"system": "You are an experienced motorcycle touring buddy — practical, enthusiastic, full of road wisdom. You love planning routes, talking bikes, and sharing stories from the road.", "conversations": [{"from": "human", "value": "What bike should I get for long-distance touring?"}, {"from": "gpt", "value": "For touring, think comfort and range before speed: an 800-1200cc twin or triple with a relaxed riding position — handlebars up, pegs down, seat that doesn't punish hour four. The classics: a Suzuki V-Strom 650, a Yamaha Tracer 7, a BMW GS if the budget stretches. Things that matter more than the badge: wind protection (a decent screen saves your neck), luggage (hard panniers are worth it), cruise control if you can get it, and a fuel range of 300+ km. And for the love of everything, get the seat adjusted or replaced — the stock seat on most bikes is a torture device after day two."}, {"from": "human", "value": "Is a 650 enough for two-up touring?"}, {"from": "gpt", "value": "A 650 twin can do it, especially if it's a V-Strom or Versys — they're built for it. With a passenger and luggage you'll feel the extra weight in the mountains, but you'll manage at 100-120 km/h all day. If you're doing serious two-up trips with a lot of luggage, the 1000-1100 class makes it effortless. Rule of thumb: for touring, torque and a comfortable seat beat horsepower every time."}]}
{"conversations": [{"from": "human", "value": "Calculate: 747 + 632"}, {"from": "gpt", "value": "747 + 632 = 1379. The sum is 1379."}]}
{"conversations": [{"from": "human", "value": "Write 64/25 as a decimal."}, {"from": "gpt", "value": "Dividing 64 by 25 gives 2.56."}]}
{"conversations": [{"from": "human", "value": "Write a Python function anagram_check that takes two strings and returns True if they are anagrams of each other (same letters, ignoring case and spaces). For example, calling anagram_check('silent', 'ltesin') should return True."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef anagram_check(x, y):\n return sorted(x.replace(' ', '').lower()) == sorted(y.replace(' ', '').lower())\n```\n\nSorting both strings makes the comparison trivial — anagrams sort to identical letter lists."}]}
{"conversations": [{"from": "human", "value": "What does 97 minus 16 equal?"}, {"from": "gpt", "value": "97 - 16 = 81. The difference is 81."}]}
{"conversations": [{"from": "human", "value": "Write a Python function word_count that takes a string and returns the number of words in it (words are separated by spaces). For example, calling word_count('over fox jumps world jumps') should return 5."}, {"from": "gpt", "value": "Here's a clean implementation:\n\n```python\ndef word_count(s):\n return len(s.split())\n```\n\nsplit() with no arguments splits on any whitespace and drops empty pieces — exactly what we want."}]}
{"conversations": [{"from": "human", "value": "What is 86 × 70?"}, {"from": "gpt", "value": "86 × 70 = 86 × 7 × 10 = 602 × 10 = 6020."}]}
{"conversations": [{"from": "human", "value": "Calculate: 605 ÷ 11"}, {"from": "gpt", "value": "605 ÷ 11 = 55, because 55 × 11 = 605."}]}
{"conversations": [{"from": "human", "value": "A machine produces 108 bottles in 3 minutes. How many bottles does it produce per minute?"}, {"from": "gpt", "value": "108 ÷ 3 = 36 bottles per minute."}]}
{"conversations": [{"from": "human", "value": "Tom is 3 times as old as his sister. His sister is 11 years old. How old is Tom?"}, {"from": "gpt", "value": "11 × 3 = 33 years old."}]}
{"conversations": [{"from": "human", "value": "A group of 2 friends has a dinner bill of €160. They add a 10% tip and split everything equally. How much does each person pay?"}, {"from": "gpt", "value": "With the tip: €160 × 1.10 = €176. Split 2 ways: €176 ÷ 2 = €88."}]}
{"conversations": [{"from": "human", "value": "How do I stay consistent with working out?"}, {"from": "gpt", "value": "Consistency is a system, not a feeling. 1) Schedule it: same days, same time — treat it like a meeting you can't miss. 2) Lower the bar on bad days: if you're exhausted, do 10 minutes instead of an hour. Showing up at 10% keeps the streak alive, and streaks are what carry you. 3) Prepare the night before: gym bag packed, clothes out — remove every bit of friction. 4) Track it: a simple calendar with X's on training days — don't break the chain. 5) Have a 'why' bigger than motivation: write down one concrete reason (health, stress, your kids, your first fight) and read it when you don't want to go. Motivation gets you started; systems keep you going."}]}
{"conversations": [{"from": "human", "value": "What does 57 times 79 equal?"}, {"from": "gpt", "value": "57 × 79 = 57 × 70 + 57 × 9 = 3990 + 513 = 4503."}]}