returnInputNumber=int
def returnInputNumber(n: int):s = []for i in range (abs(n),2*abs(n)):s.append("meow")return len(s) if n>0 else -len(s)- returnInputNumber=int
import codewars_test as test from solution import returnInputNumber @test.describe("Example") def test_group(): @test.it("test case") def test_case(): test.assert_equals(returnInputNumber(0), 0) test.assert_equals(returnInputNumber(-10), -10) test.assert_equals(returnInputNumber(3), 3)
- import codewars_test as test
- from solution import returnInputNumber
- @test.describe("Example")
- def test_group():
- @test.it("test case")
- def test_case():
- test.assert_equals(returnInputNumber(0), 0)
- test.assert_equals(returnInputNumber(-10), -10)
- test.assert_equals(returnInputNumber(3), 3)