Dataset Viewer
input
stringclasses 2
values | instruction
stringclasses 1
value | output
stringclasses 2
values |
---|---|---|
Generate LUA Code that generates Fibonacci sequence up to n=10.
|
You are a Developer and you are tasked to do the task bellow
|
function fibonacci(n)
local fib = {0, 1}
for i = 3, n do
fib[i] = fib[i - 1] + fib[i - 2]
end
return fib
end
print(table.concat(fibonacci(10), ', '))
|
Check if the string 'radar' is a palindrome using python.
|
You are a Developer and you are tasked to do the task bellow
|
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome('radar'))
|
README.md exists but content is empty.
- Downloads last month
- 3