Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# HumanEval/79
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
def decimal_to_binary(decimal):
|
||||
"""You will be given a number in decimal form and your task is to convert it to
|
||||
binary format. The function should return a string, with each character representing a binary
|
||||
number. Each character in the string will be '0' or '1'.
|
||||
|
||||
There will be an extra couple of characters 'db' at the beginning and at the end of the string.
|
||||
The extra characters are there to help with the format.
|
||||
|
||||
Examples:
|
||||
decimal_to_binary(15) # returns "db1111db"
|
||||
decimal_to_binary(32) # returns "db100000db"
|
||||
"""
|
||||
return "db" + bin(decimal)[2:] + "db"
|
||||
Reference in New Issue
Block a user