Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
2
[ { "role": "user", "content": "Oblicz: 247 razy 18." }, { "role": "assistant", "content": "Krok 1: 247 × 10 = 2470.\nKrok 2: 247 × 8 = 1976.\nKrok 3: 2470 + 1976 = 4446.\n\nOdpowiedź: 4446." } ]
[ { "role": "user", "content": "Oblicz: (3 + 4)² - 2 × 5." }, { "role": "assistant", "content": "Krok 1: (3 + 4)² = 7² = 49.\nKrok 2: 2 × 5 = 10.\nKrok 3: 49 - 10 = 39.\n\nOdpowiedź: 39." } ]
[ { "role": "user", "content": "Funkcja liniowa f(x) = 2x - 3. Oblicz f(7) i f(-1)." }, { "role": "assistant", "content": "Krok 1: f(7) = 2×7 - 3 = 14 - 3 = 11.\nKrok 2: f(-1) = 2×(-1) - 3 = -2 - 3 = -5.\n\nOdpowiedź: f(7) = 11, f(-1) = -5." } ]
[ { "role": "user", "content": "If a train travels 480 km in 6 hours, what is its average speed?" }, { "role": "assistant", "content": "Step 1: speed = distance / time = 480 / 6 = 80 km/h.\n\nAnswer: 80 km/h." } ]
[ { "role": "user", "content": "A coat is on sale at 30% off. The original price was $120. What is the sale price?" }, { "role": "assistant", "content": "Step 1: Discount = 30% × $120 = $36.\nStep 2: Sale price = $120 - $36 = $84.\n\nAnswer: $84." } ]
[ { "role": "user", "content": "Solve for x: 4(x + 3) = 28." }, { "role": "assistant", "content": "Step 1: x + 3 = 28/4 = 7.\nStep 2: x = 7 - 3 = 4.\n\nAnswer: x = 4." } ]
[ { "role": "user", "content": "The product of two consecutive integers is 156. Find them." }, { "role": "assistant", "content": "Step 1: Let them be n and n+1. n(n+1) = 156.\nStep 2: Trying n = 12: 12 × 13 = 156. ✓\n\nAnswer: 12 and 13." } ]
[ { "role": "user", "content": "A circle has radius 7 cm. What is its area? Use π ≈ 3.14." }, { "role": "assistant", "content": "Step 1: Area = πr² = 3.14 × 49.\nStep 2: 3.14 × 49 = 153.86.\n\nAnswer: 153.86 cm²." } ]
[ { "role": "user", "content": "A class has 18 girls and 12 boys. What percentage are girls?" }, { "role": "assistant", "content": "Step 1: Total students = 18 + 12 = 30.\nStep 2: Percentage = 18/30 × 100% = 60%.\n\nAnswer: 60%." } ]
[ { "role": "user", "content": "If you flip a fair coin 3 times, what's the probability of getting exactly 2 heads?" }, { "role": "assistant", "content": "Step 1: Total outcomes = 2³ = 8.\nStep 2: Favorable (exactly 2 H): HHT, HTH, THH = 3 outcomes.\nStep 3: Probability = 3/8 = 0.375.\n\nAnswer: 3...
[ { "role": "user", "content": "Convert 3/8 to a decimal." }, { "role": "assistant", "content": "Step 1: 3 / 8 = 0.375.\n\nAnswer: 0.375." } ]
[ { "role": "user", "content": "A rectangle has area 60 cm² and length 12 cm. What is the perimeter?" }, { "role": "assistant", "content": "Step 1: Width = Area / Length = 60 / 12 = 5 cm.\nStep 2: Perimeter = 2(length + width) = 2(12 + 5) = 34.\n\nAnswer: 34 cm." } ]
[ { "role": "user", "content": "Simplify: (2³)² + 4 × 5." }, { "role": "assistant", "content": "Step 1: (2³)² = 2⁶ = 64.\nStep 2: 4 × 5 = 20.\nStep 3: 64 + 20 = 84.\n\nAnswer: 84." } ]
[ { "role": "user", "content": "If sin(θ) = 3/5 and θ is in the first quadrant, find cos(θ)." }, { "role": "assistant", "content": "Step 1: sin²θ + cos²θ = 1.\nStep 2: cos²θ = 1 - (3/5)² = 1 - 9/25 = 16/25.\nStep 3: cos(θ) = 4/5 (positive in Q1).\n\nAnswer: 4/5." } ]
[ { "role": "user", "content": "How many seconds are in 4 hours and 25 minutes?" }, { "role": "assistant", "content": "Step 1: 4 hours = 4 × 3600 = 14400 s.\nStep 2: 25 minutes = 25 × 60 = 1500 s.\nStep 3: Total = 14400 + 1500 = 15900 s.\n\nAnswer: 15900 seconds." } ]
[ { "role": "user", "content": "Two buses leave the same station traveling in opposite directions. One goes 60 km/h, the other 80 km/h. After how many hours are they 350 km apart?" }, { "role": "assistant", "content": "Step 1: Combined speed = 60 + 80 = 140 km/h.\nStep 2: Time = distance / speed =...
[ { "role": "user", "content": "Compute the median of: 4, 7, 12, 15, 18, 23." }, { "role": "assistant", "content": "Step 1: Sorted (already): 4, 7, 12, 15, 18, 23.\nStep 2: Even count (6) → median = average of 3rd and 4th: (12+15)/2 = 13.5.\n\nAnswer: 13.5." } ]
[ { "role": "user", "content": "If 2x + 3y = 14 and x = 4, find y." }, { "role": "assistant", "content": "Step 1: 2(4) + 3y = 14 → 8 + 3y = 14.\nStep 2: 3y = 6 → y = 2.\n\nAnswer: y = 2." } ]
[ { "role": "user", "content": "A sphere has volume 4188 cm³. Find its radius. (Use V = 4/3 π r³, π ≈ 3.14.)" }, { "role": "assistant", "content": "Step 1: r³ = V × 3 / (4π) = 4188 × 3 / 12.56 = 12564 / 12.56 ≈ 1000.\nStep 2: r = ∛1000 = 10.\n\nAnswer: r ≈ 10 cm." } ]
[ { "role": "user", "content": "What is the next number in the sequence: 2, 6, 12, 20, 30, ?" }, { "role": "assistant", "content": "Step 1: Differences: 4, 6, 8, 10. Each difference grows by 2.\nStep 2: Next difference: 12. Next term: 30 + 12 = 42.\n\nAnswer: 42." } ]
[ { "role": "user", "content": "Factor 12x² + 8x." }, { "role": "assistant", "content": "Step 1: GCF = 4x.\nStep 2: 12x² + 8x = 4x(3x + 2).\n\nAnswer: 4x(3x + 2)." } ]
[ { "role": "user", "content": "A right triangle has legs 8 and 15. What is the hypotenuse?" }, { "role": "assistant", "content": "Step 1: c² = 8² + 15² = 64 + 225 = 289.\nStep 2: c = √289 = 17.\n\nAnswer: 17." } ]
[ { "role": "user", "content": "Compute the geometric mean of 4 and 9." }, { "role": "assistant", "content": "Step 1: GM = √(4 × 9) = √36 = 6.\n\nAnswer: 6." } ]
[ { "role": "user", "content": "Write a Python function that returns the n-th Fibonacci number iteratively." }, { "role": "assistant", "content": "```python\ndef fib(n):\n if n < 0:\n raise ValueError('n must be non-negative')\n if n < 2:\n return n\n a, b = 0, 1\n for _ ...
[ { "role": "user", "content": "How do you read JSON from a URL in Python?" }, { "role": "assistant", "content": "```python\nimport requests\n\nresp = requests.get('https://api.example.com/data', timeout=10)\nresp.raise_for_status()\ndata = resp.json()\nprint(data)\n```\n\n`resp.raise_for_status()...
[ { "role": "user", "content": "Write a function that checks if a string contains balanced parentheses." }, { "role": "assistant", "content": "```python\ndef balanced(s):\n stack = []\n pairs = {')': '(', ']': '[', '}': '{'}\n for ch in s:\n if ch in '([{':\n stack.appen...
[ { "role": "user", "content": "Explain the difference between deep and shallow copy in Python." }, { "role": "assistant", "content": "**Shallow copy** (`copy.copy()` or `list.copy()`) creates a new container but references the same nested objects. Changes to nested mutable objects affect both.\n\...
[ { "role": "user", "content": "Write a Python list comprehension that filters even numbers from a list and squares them." }, { "role": "assistant", "content": "```python\nnums = [1, 2, 3, 4, 5, 6, 7, 8]\nresult = [n * n for n in nums if n % 2 == 0]\nprint(result) # [4, 16, 36, 64]\n```" } ]
[ { "role": "user", "content": "Write a SQL query to find the top 3 highest-paid employees per department." }, { "role": "assistant", "content": "```sql\nSELECT department, name, salary\nFROM (\n SELECT department, name, salary,\n ROW_NUMBER() OVER (PARTITION BY department ORDER BY sa...
[ { "role": "user", "content": "How do you implement a context manager in Python using a class?" }, { "role": "assistant", "content": "```python\nclass FileManager:\n def __init__(self, filename, mode):\n self.filename = filename\n self.mode = mode\n\n def __enter__(self):\n ...
[ { "role": "user", "content": "Write a function that finds the longest common prefix of an array of strings." }, { "role": "assistant", "content": "```python\ndef longest_common_prefix(strs):\n if not strs:\n return ''\n prefix = strs[0]\n for s in strs[1:]:\n while not s.s...
[ { "role": "user", "content": "How does Python's garbage collector work?" }, { "role": "assistant", "content": "Python uses two mechanisms:\n\n1. **Reference counting** (primary): every object has a count of references. When the count drops to 0, the object is immediately freed.\n\n2. **Cyclic ga...
[ { "role": "user", "content": "Write a Python generator that yields all prime numbers up to n using the Sieve of Eratosthenes." }, { "role": "assistant", "content": "```python\ndef sieve_primes(n):\n if n < 2:\n return\n is_prime = [True] * (n + 1)\n is_prime[0] = is_prime[1] = Fa...
[ { "role": "user", "content": "Explain async/await in Python." }, { "role": "assistant", "content": "`async def` declares a coroutine — a function whose execution can be paused and resumed.\n`await` pauses the coroutine until the awaited operation completes, yielding control to the event loop.\n\...
[ { "role": "user", "content": "Write a Python function that performs binary search on a sorted list." }, { "role": "assistant", "content": "```python\ndef binary_search(arr, target):\n lo, hi = 0, len(arr) - 1\n while lo <= hi:\n mid = (lo + hi) // 2\n if arr[mid] == target:\n...
[ { "role": "user", "content": "How do you write a Python class with private attributes?" }, { "role": "assistant", "content": "Python convention uses underscores:\n\n```python\nclass BankAccount:\n def __init__(self, balance):\n self._balance = balance # protected (convention)\n ...
[ { "role": "user", "content": "Write a function that flattens a nested list of arbitrary depth." }, { "role": "assistant", "content": "```python\ndef flatten(lst):\n result = []\n for item in lst:\n if isinstance(item, list):\n result.extend(flatten(item))\n else:\n...
[ { "role": "user", "content": "Explain Python decorators with a simple example." }, { "role": "assistant", "content": "A decorator is a function that takes another function and extends its behavior without modifying it directly.\n\n```python\ndef log_calls(func):\n def wrapper(*args, **kwargs)...
[ { "role": "user", "content": "How do you make an HTTP POST request with JSON body in Python?" }, { "role": "assistant", "content": "```python\nimport requests\n\npayload = {'name': 'Anna', 'age': 30}\nresp = requests.post(\n 'https://httpbin.org/post',\n json=payload, # auto-serializes + ...
[ { "role": "user", "content": "Write a function that returns the second-largest element in a list (no duplicates of the largest)." }, { "role": "assistant", "content": "```python\ndef second_largest(lst):\n if len(lst) < 2:\n return None\n first = second = float('-inf')\n for x in...
[ { "role": "user", "content": "Explain Python's GIL (Global Interpreter Lock)." }, { "role": "assistant", "content": "The GIL is a mutex in CPython that allows only ONE thread to execute Python bytecode at a time, even on multi-core systems.\n\nImplications:\n- CPU-bound multithreaded code does N...
[ { "role": "user", "content": "Write a Python script that counts lines, words, and characters in a file (like 'wc -lwc')." }, { "role": "assistant", "content": "```python\nimport sys\n\ndef wc(filename):\n lines = words = chars = 0\n with open(filename, 'r', encoding='utf-8') as f:\n ...
[ { "role": "user", "content": "Write a function in Python that merges two sorted lists into one sorted list." }, { "role": "assistant", "content": "```python\ndef merge(a, b):\n result = []\n i = j = 0\n while i < len(a) and j < len(b):\n if a[i] <= b[j]:\n result.appen...
[ { "role": "user", "content": "Oblicz: 1234 plus 5678." }, { "role": "assistant", "content": "Krok 1: 1234 + 5678 = 6912.\n\nOdpowiedź: 6912." } ]
[ { "role": "user", "content": "Suma cyfr liczby 2025?" }, { "role": "assistant", "content": "Krok 1: 2 + 0 + 2 + 5 = 9.\n\nOdpowiedź: 9." } ]
[ { "role": "user", "content": "Pochodna funkcji f(x) = 3x² + 5x - 2." }, { "role": "assistant", "content": "Krok 1: f'(x) = 6x + 5.\n\nOdpowiedź: f'(x) = 6x + 5." } ]
[ { "role": "user", "content": "Funkcja sinus 30 stopni?" }, { "role": "assistant", "content": "Krok 1: sin(30°) = 1/2 = 0,5.\n\nOdpowiedź: 0,5." } ]
[ { "role": "user", "content": "Calculate: 856 - 379." }, { "role": "assistant", "content": "Step 1: 856 - 379 = 477.\n\nAnswer: 477." } ]
[ { "role": "user", "content": "What is 12% of 250?" }, { "role": "assistant", "content": "Step 1: 12% × 250 = 0.12 × 250 = 30.\n\nAnswer: 30." } ]
[ { "role": "user", "content": "Solve for x: 7x - 4 = 31." }, { "role": "assistant", "content": "Step 1: 7x = 35.\nStep 2: x = 5.\n\nAnswer: x = 5." } ]
[ { "role": "user", "content": "A pizza is cut into 8 slices. If 3 are eaten, what fraction remains?" }, { "role": "assistant", "content": "Step 1: Remaining = 8 - 3 = 5.\nStep 2: Fraction = 5/8.\n\nAnswer: 5/8." } ]
[ { "role": "user", "content": "Area of a triangle with base 10 and height 8?" }, { "role": "assistant", "content": "Step 1: A = ½ × 10 × 8 = 40.\n\nAnswer: 40." } ]
[ { "role": "user", "content": "Find the LCM of 4 and 6." }, { "role": "assistant", "content": "Step 1: 4 = 2². 6 = 2 × 3.\nStep 2: LCM = 2² × 3 = 12.\n\nAnswer: 12." } ]
[ { "role": "user", "content": "If a ball is dropped from 80 m, in free-fall ignoring air resistance, what's its velocity after 2 s? (g=10 m/s²)" }, { "role": "assistant", "content": "Step 1: v = g × t = 10 × 2 = 20.\n\nAnswer: 20 m/s." } ]
[ { "role": "user", "content": "Convert 0.625 to a fraction." }, { "role": "assistant", "content": "Step 1: 0.625 = 625/1000 = 5/8.\n\nAnswer: 5/8." } ]
[ { "role": "user", "content": "If x = 3 and y = -2, evaluate 2x² + 3y." }, { "role": "assistant", "content": "Step 1: 2(9) + 3(-2) = 18 - 6 = 12.\n\nAnswer: 12." } ]
[ { "role": "user", "content": "How many seconds in a day?" }, { "role": "assistant", "content": "Step 1: 24 × 60 × 60 = 86400.\n\nAnswer: 86400 seconds." } ]
[ { "role": "user", "content": "Probability of rolling a 6 on a fair die?" }, { "role": "assistant", "content": "Step 1: 1 favorable outcome / 6 total = 1/6.\n\nAnswer: 1/6 ≈ 0.167." } ]
[ { "role": "user", "content": "Solve the system: 2x + y = 7, x - y = 2." }, { "role": "assistant", "content": "Step 1: Add: 3x = 9 → x = 3.\nStep 2: y = 7 - 2×3 = 1.\n\nAnswer: x = 3, y = 1." } ]
[ { "role": "user", "content": "Volume of a cone with radius 3 and height 5? (Use π ≈ 3.14)" }, { "role": "assistant", "content": "Step 1: V = ⅓πr²h = ⅓ × 3.14 × 9 × 5 = 47.1.\n\nAnswer: ≈ 47.1." } ]
[ { "role": "user", "content": "Find the slope of the line through (1, 2) and (4, 11)." }, { "role": "assistant", "content": "Step 1: m = (11 - 2) / (4 - 1) = 9 / 3 = 3.\n\nAnswer: 3." } ]
[ { "role": "user", "content": "Compound interest: $1000 at 5% for 2 years (annual)." }, { "role": "assistant", "content": "Step 1: A = P(1 + r)^t = 1000 × 1.05² = 1000 × 1.1025 = 1102.50.\nStep 2: Interest = $102.50.\n\nAnswer: $102.50 interest, total $1102.50." } ]
[ { "role": "user", "content": "Convert 75 km/h to m/s." }, { "role": "assistant", "content": "Step 1: 75 km/h × (1000 m / 1 km) × (1 h / 3600 s) = 75000 / 3600 ≈ 20.83.\n\nAnswer: ≈ 20.83 m/s." } ]
[ { "role": "user", "content": "Solve: log₂(x) = 5." }, { "role": "assistant", "content": "Step 1: x = 2⁵ = 32.\n\nAnswer: x = 32." } ]
[ { "role": "user", "content": "Find the derivative of f(x) = x³ - 2x² + 7." }, { "role": "assistant", "content": "Step 1: f'(x) = 3x² - 4x.\n\nAnswer: f'(x) = 3x² - 4x." } ]
[ { "role": "user", "content": "Median of: 2, 5, 7, 11, 18, 23." }, { "role": "assistant", "content": "Step 1: Even count (6) → median = average of 3rd and 4th.\nStep 2: (7 + 11) / 2 = 9.\n\nAnswer: 9." } ]
[ { "role": "user", "content": "If x² = 144, find all values of x." }, { "role": "assistant", "content": "Step 1: x = ±12.\n\nAnswer: x = 12 or x = -12." } ]
[ { "role": "user", "content": "How many diagonals does an octagon have?" }, { "role": "assistant", "content": "Step 1: Formula n(n-3)/2.\nStep 2: 8 × 5 / 2 = 20.\n\nAnswer: 20." } ]
[ { "role": "user", "content": "Simplify: (a + b)² - (a - b)²." }, { "role": "assistant", "content": "Step 1: (a + b)² = a² + 2ab + b². (a - b)² = a² - 2ab + b².\nStep 2: Difference: 4ab.\n\nAnswer: 4ab." } ]
[ { "role": "user", "content": "A bag has 5 red, 3 blue, 2 green marbles. Probability of red on one draw?" }, { "role": "assistant", "content": "Step 1: 5 / (5+3+2) = 5/10 = 0.5.\n\nAnswer: 1/2." } ]
[ { "role": "user", "content": "If A = πr², find r when A = 78.5 and π ≈ 3.14." }, { "role": "assistant", "content": "Step 1: r² = A/π = 78.5/3.14 = 25.\nStep 2: r = 5.\n\nAnswer: r = 5." } ]
[ { "role": "user", "content": "Sum of the first 100 positive integers?" }, { "role": "assistant", "content": "Step 1: S = n(n+1)/2 = 100 × 101 / 2 = 5050.\n\nAnswer: 5050." } ]
[ { "role": "user", "content": "Cosine of 60°?" }, { "role": "assistant", "content": "Step 1: cos(60°) = 1/2 = 0.5.\n\nAnswer: 0.5." } ]
[ { "role": "user", "content": "If 3a + 2 = 17, find a." }, { "role": "assistant", "content": "Step 1: 3a = 15.\nStep 2: a = 5.\n\nAnswer: a = 5." } ]
[ { "role": "user", "content": "Solve x² - 5x + 6 = 0." }, { "role": "assistant", "content": "Step 1: Factor: (x - 2)(x - 3) = 0.\nStep 2: x = 2 or x = 3.\n\nAnswer: x = 2 or x = 3." } ]
[ { "role": "user", "content": "Convert 5/12 to a percentage." }, { "role": "assistant", "content": "Step 1: 5/12 ≈ 0.4167.\nStep 2: × 100% ≈ 41.67%.\n\nAnswer: ≈ 41.67%." } ]
[ { "role": "user", "content": "How many possible 4-digit PINs (digits 0-9)?" }, { "role": "assistant", "content": "Step 1: 10⁴ = 10000.\n\nAnswer: 10000." } ]
[ { "role": "user", "content": "Mean of: 4, 8, 6, 10, 12." }, { "role": "assistant", "content": "Step 1: Sum = 40. Count = 5.\nStep 2: Mean = 40/5 = 8.\n\nAnswer: 8." } ]
[ { "role": "user", "content": "If sin(θ) = 0.6 and cos(θ) = 0.8, what is tan(θ)?" }, { "role": "assistant", "content": "Step 1: tan(θ) = sin(θ)/cos(θ) = 0.6/0.8 = 0.75.\n\nAnswer: 0.75." } ]
[ { "role": "user", "content": "What is e^0?" }, { "role": "assistant", "content": "Step 1: Any non-zero number to the 0 power = 1.\n\nAnswer: 1." } ]
[ { "role": "user", "content": "Quadratic formula: solve x² - 4x - 5 = 0." }, { "role": "assistant", "content": "Step 1: a=1, b=-4, c=-5. Discriminant = 16 + 20 = 36. √36 = 6.\nStep 2: x = (4 ± 6) / 2 → x = 5 or x = -1.\n\nAnswer: x = 5 or x = -1." } ]
[ { "role": "user", "content": "Surface area of a sphere with r = 4? (π ≈ 3.14)" }, { "role": "assistant", "content": "Step 1: SA = 4πr² = 4 × 3.14 × 16 = 200.96.\n\nAnswer: ≈ 200.96." } ]
[ { "role": "user", "content": "If P(A) = 0.3 and P(B) = 0.4 and A, B independent, find P(A∩B)." }, { "role": "assistant", "content": "Step 1: P(A ∩ B) = P(A) × P(B) = 0.12.\n\nAnswer: 0.12." } ]
[ { "role": "user", "content": "Length of arc subtending 90° in a circle of radius 10? (π ≈ 3.14)" }, { "role": "assistant", "content": "Step 1: Arc = (θ/360) × 2πr = 0.25 × 2 × 3.14 × 10 = 15.7.\n\nAnswer: ≈ 15.7." } ]
[ { "role": "user", "content": "What's the 8th term of the arithmetic sequence 3, 7, 11, ...?" }, { "role": "assistant", "content": "Step 1: a₁ = 3, d = 4. a_n = a₁ + (n-1)d.\nStep 2: a₈ = 3 + 7×4 = 31.\n\nAnswer: 31." } ]
[ { "role": "user", "content": "If 2^x = 64, find x." }, { "role": "assistant", "content": "Step 1: 64 = 2⁶.\nStep 2: x = 6.\n\nAnswer: x = 6." } ]
[ { "role": "user", "content": "Volume of a cube with side 7?" }, { "role": "assistant", "content": "Step 1: V = 7³ = 343.\n\nAnswer: 343." } ]
[ { "role": "user", "content": "Speed-distance-time: cyclist travels 45 km in 90 min. Speed in km/h?" }, { "role": "assistant", "content": "Step 1: 90 min = 1.5 h.\nStep 2: 45 / 1.5 = 30.\n\nAnswer: 30 km/h." } ]
[ { "role": "user", "content": "What is the GCD of 24 and 36?" }, { "role": "assistant", "content": "Step 1: 24 = 2³ × 3. 36 = 2² × 3².\nStep 2: GCD = 2² × 3 = 12.\n\nAnswer: 12." } ]
[ { "role": "user", "content": "Solve: 3(x - 2) = 2x + 1." }, { "role": "assistant", "content": "Step 1: 3x - 6 = 2x + 1.\nStep 2: x = 7.\n\nAnswer: x = 7." } ]
[ { "role": "user", "content": "If the angles of a triangle are in ratio 2:3:4, find them." }, { "role": "assistant", "content": "Step 1: 2k + 3k + 4k = 180 → 9k = 180 → k = 20.\nStep 2: 40°, 60°, 80°.\n\nAnswer: 40°, 60°, 80°." } ]
[ { "role": "user", "content": "Standard deviation indicates what?" }, { "role": "assistant", "content": "Standard deviation measures how spread out values are from the mean. A small SD means values cluster near the mean; a large SD means they vary widely. Formula: √(Σ(x - mean)² / n).\n\nAnswer: ...
[ { "role": "user", "content": "If a recipe for 4 servings needs 200 g of flour, how much for 7?" }, { "role": "assistant", "content": "Step 1: Per serving: 200/4 = 50 g.\nStep 2: 7 servings: 50 × 7 = 350.\n\nAnswer: 350 g." } ]
[ { "role": "user", "content": "Combinations: choose 3 from 5 (5 nCr 3)." }, { "role": "assistant", "content": "Step 1: C(5,3) = 5! / (3! × 2!) = 120 / 12 = 10.\n\nAnswer: 10." } ]
[ { "role": "user", "content": "If sin(A) = 1, what is A in degrees?" }, { "role": "assistant", "content": "Step 1: sin reaches 1 at 90°.\n\nAnswer: 90°." } ]
[ { "role": "user", "content": "Compute (3+4i)(2-i) where i² = -1." }, { "role": "assistant", "content": "Step 1: 6 - 3i + 8i - 4i² = 6 + 5i + 4 = 10 + 5i.\n\nAnswer: 10 + 5i." } ]
[ { "role": "user", "content": "If x increases by 20% and then decreases by 20%, what's the net change?" }, { "role": "assistant", "content": "Step 1: 1.20 × 0.80 = 0.96.\nStep 2: Net = -4%.\n\nAnswer: -4% (a 4% decrease)." } ]
[ { "role": "user", "content": "Co robi `with` w Pythonie?" }, { "role": "assistant", "content": "`with` to instrukcja kontekstu — wywołuje metody `__enter__` i `__exit__` obiektu. Zapewnia że zasoby są zwalniane nawet w przypadku wyjątku.\n\n```python\nwith open('plik.txt') as f:\n dane = f.re...
[ { "role": "user", "content": "Write a Python function that reverses a string." }, { "role": "assistant", "content": "```python\ndef reverse(s):\n return s[::-1]\n\nprint(reverse('hello')) # 'olleh'\n```" } ]
[ { "role": "user", "content": "How do you check if a key exists in a Python dict?" }, { "role": "assistant", "content": "```python\nd = {'a': 1, 'b': 2}\n\nif 'a' in d:\n print('found')\n\n# Avoid: d.has_key() (removed in Python 3)\n# Avoid: 'a' in d.keys() (slower, redundant)\n```" } ]
End of preview. Expand in Data Studio

Polish LLM SFT Dataset — English

EN | English-language subset of a dataset prepared to help various LLMs learn and improve their Polish language capabilities. Companion to the Polish repo.

PL | Anglojęzyczny podzbiór datasetu przygotowanego z myślą o nauczaniu języka polskiego różnych modeli LLM. Companion do repo polskiego.

4 884 samples · Apache 2.0 · Language: EN


Format

{"messages": [
  {"role": "user", "content": "..."},
  {"role": "assistant", "content": "..."}
]}

Structure

Directory Description Samples
math/ Math word problems 267
mcq_general/ Multi-domain MCQ 1 937
mcq_rc/ Reading comprehension MCQ 75
reasoning/ Chain-of-thought reasoning 2 605

Quality scale

Score Meaning
q10 Handwritten with Claude Opus 4.7, verified
q9 Synthetically generated, ~95% accuracy
q8 Good data with minor issues

Encoded in filename: *_q10_*, *_q9_*, *_q8_*.


Caveats

Synthetic data may contain factual errors. *_q8_* files carry higher hallucination risk than *_q10_*.


License

Apache 2.0

Downloads last month
64