-
Code binary = lambda n: bin(n)[2:]
Test Cases import codewars_test as test from solution import binary .describe("Example") def test_group(): .it("test case") def test_case(): for n in range(1,1001): test.assert_equals(binary(n), bin(n)[2:])
Output:
-
Code binary = lambda n: bin(n).replace('0b','')- binary = lambda n: bin(n)[2:]
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}