-
Code code = 'lambda code: int(len(code))*3+7' return_hundred = lambda n: eval(code)(code)
Preloaded Code import codewars_test as Test n = 100 / 25 * 4 * 5 + 20
Test Cases Test.assert_equals(return_hundred(n),100)
Output:
-
Code def return_hundred(n):return (n/2)*2- code = 'lambda code: int(len(code))*3+7'
- return_hundred = lambda n: eval(code)(code)
- 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 }}