Spaces:
Runtime error
Runtime error
update examples
Browse files132 unmodified lines133134135136137138139136137138139140141142132 unmodified lines
examples = [ "def print_hello_world():", 'def fibonacci(n: int) -> int:\n """ Compute the n-th Fibonacci number. """', 'from typing import List, Tuple\n\ndef sum_and_product(numbers: List[int]) -> Tuple[int, int]:\n """ Return the sum and the product of the integers in the list as a tuple. Here is the answer of the exercise"""', "class ComplexNumbers:", "X_train, y_train, X_test, y_test = train_test_split(X, y, test_size=0.1)\n\n# Train a logistic regression model, predict the labels on the test set and compute the accuracy score", "// Returns every other value in the array as a new array.\nfunction everyOther(arr) {", "<jupyter_text>Let's test our `is_prime` function:<jupyter_code>print(is_prime(3))\nprint(is_prime(4))\nprint(is_prime(29))\nprint(is_prime(33))<jupyter_output>", "def alternating(list1, list2):\n results = []\n for i in range(min(len(list1), len(list2))):\n results.append(list1[i])\n results.append(list2[i])\n if len(list1) > len(list2):\n <FILL_HERE>\n else:\n results.extend(list2[i+1:])\n return results",]
app.py+4-4