gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
generate independent 20 code blocks with contents not more than 3 lines.
- User
generate independent 20 code blocks with contents not more than 3 lines.
- Assistant
print("Hello, World!")for i in range(3): print(i)def add(a, b): return a + bimport math print(math.pi)x = [1, 2, 3] print(x[-1])name = "Alice" print(f"Hi, {name}!")square = lambda x: x * x print(square(5))numbers = [1, 2, 3] print(sum(numbers))print("Python"[::-1])d = {'a': 1, 'b': 2} print(d.get('a'))x = 7 if x > 5: print("Greater")print(len("OpenAI"))x = None print(x is None)print(max([4, 8, 2]))print(bool(0))i = 0 while i < 3: print(i) i += 1
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.