Spaces:
Sleeping
Sleeping
Create python.jsonl
Browse files- python.jsonl +100 -0
python.jsonl
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"prompt": "Write a Python function that returns the square of a number.", "completion": "def square(n):\n return n * n"}
|
| 2 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 3 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*')", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 4 |
+
{"prompt": "Write Python code to check if a number is even.", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 5 |
+
{"prompt": "Write Python code to count from 1 to 10.", "completion": "for i in range(1, 11):\n print(i)"}
|
| 6 |
+
{"prompt": "Write a Python function that reverses a string.", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 7 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x)", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 8 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\")", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 9 |
+
{"prompt": "Write Python code to find the largest of three numbers.", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 10 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper())", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 11 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 12 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 13 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 14 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 15 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 16 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 17 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 18 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 19 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 20 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 21 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 22 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 23 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 24 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 25 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 26 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 27 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 28 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 29 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 30 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 31 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 32 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 33 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 34 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 35 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 36 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 37 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 38 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 39 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 40 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 41 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 42 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 43 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 44 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 45 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 46 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 47 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 48 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 49 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 50 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 51 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 52 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 53 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 54 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 55 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 56 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 57 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 58 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 59 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 60 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 61 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 62 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 63 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 64 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 65 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 66 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 67 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 68 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 69 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 70 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 71 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 72 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 73 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 74 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 75 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 76 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 77 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 78 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 79 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 80 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 81 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 82 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 83 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 84 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 85 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 86 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 87 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 88 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 89 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 90 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|
| 91 |
+
{"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"}
|
| 92 |
+
{"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name # variation", "completion": "def greet(name):\n return \"Hello \" + name"}
|
| 93 |
+
{"prompt": "What does this code do?\n\nfor i in range(1, 6):\n print(i * '*') # variation", "completion": "It prints a right-angled triangle of asterisks with 5 lines."}
|
| 94 |
+
{"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"}
|
| 95 |
+
{"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"}
|
| 96 |
+
{"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"}
|
| 97 |
+
{"prompt": "What does this code do?\n\nx = [1, 2, 3]\nx.append(4)\nprint(x) # variation", "completion": "It adds 4 to the list x and prints [1, 2, 3, 4]."}
|
| 98 |
+
{"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"}
|
| 99 |
+
{"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"}
|
| 100 |
+
{"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}
|