Fundamentals
Restricted
Fundamentals
Restricted
import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) @test.describe("Example") def test_group(): @test.it("test case") def test_case(): test.assert_equals(1,1)
- import codewars_test as test
- # TODO Write tests
- import solution # or from solution import example
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Example")
- def test_group():
- @test.it("test case")
- def test_case():
test.assert_equals(p(1),1)- test.assert_equals(1,1)
days=lambda m,d:(__import__("datetime").datetime(2022,m,d)-__import__("datetime").datetime(2022,1,1)).days + 1
def days(month,day):return sum([31,28,31,30,31,30,31,31,30,31,30,31][:month-1])+day- days=lambda m,d:(__import__("datetime").datetime(2022,m,d)-__import__("datetime").datetime(2022,1,1)).days + 1
days=lambda m,d:(__import__("datetime").datetime(2022,m,d)-__import__("datetime").datetime(2022,1,1)).days + 1
from datetime import datetime as dtdays=lambda m,d:(dt(2022,m,d)-dt(2022,1,1)).days + 1- days=lambda m,d:(__import__("datetime").datetime(2022,m,d)-__import__("datetime").datetime(2022,1,1)).days + 1
from datetime import datetime as dt days=lambda m,d:(dt(2022,m,d)-dt(2022,1,1)).days + 1
from datetime import datetimedef days(month,day):return (datetime(2022, month, day) - datetime(2022, 1, 1)).days + 1- from datetime import datetime as dt
- days=lambda m,d:(dt(2022,m,d)-dt(2022,1,1)).days + 1
Fundamentals
Restricted