File size: 635 Bytes
1c9c9bf
 
b055b9c
 
1c9c9bf
 
 
b055b9c
 
1c9c9bf
 
 
1
2
3
4
5
6
7
8
9
10
11
12
[
  {
    "instruction": "You are a Developer and you are tasked to do the task bellow",
    "input": "Generate LUA Code that generates Fibonacci sequence up to n=10.",
    "output": "function fibonacci(n)\n    local fib = {0, 1}\n    for i = 3, n do\n        fib[i] = fib[i - 1] + fib[i - 2]\n    end\n    return fib\nend\n\nprint(table.concat(fibonacci(10), ', '))"
  },
  {
    "instruction": "You are a Developer and you are tasked to do the task bellow",
    "input": "Check if the string 'radar' is a palindrome using python.",
    "output": "def is_palindrome(s):\n    return s == s[::-1]\n\nprint(is_palindrome('radar'))"
  }
]