{"prompt": "Write a Python function that returns the square of a number.", "completion": "def square(n):\n return n * n"} {"prompt": "Fix the bug in this Python function:\n\ndef greet(name)\n return \"Hello \" + name", "completion": "def greet(name):\n return \"Hello \" + name"} {"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."} {"prompt": "Write Python code to check if a number is even.", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10.", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string.", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\")", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers.", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper())", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."} {"prompt": "Write a Python function that returns the square of a number. # variation", "completion": "def square(n):\n return n * n"} {"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"} {"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."} {"prompt": "Write Python code to check if a number is even. # variation", "completion": "def is_even(n):\n return n % 2 == 0"} {"prompt": "Write Python code to count from 1 to 10. # variation", "completion": "for i in range(1, 11):\n print(i)"} {"prompt": "Write a Python function that reverses a string. # variation", "completion": "def reverse_string(s):\n return s[::-1]"} {"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]."} {"prompt": "Fix the error in this code:\n\nif 5 > 3\n print(\"Yes\") # variation", "completion": "if 5 > 3:\n print(\"Yes\")"} {"prompt": "Write Python code to find the largest of three numbers. # variation", "completion": "def largest(a, b, c):\n return max(a, b, c)"} {"prompt": "Explain this Python code:\n\nname = \"Alice\"\nprint(name.upper()) # variation", "completion": "It converts the string 'Alice' to uppercase and prints 'ALICE'."}