Let's go networking! Follow me on LinkedIn and GitHub:
https://www.linkedin.com/in/dev-luan/
https://github.com/luangalvaoxD
import random import time def not_even(n): pizza_time = time.ctime() 'its not even', pizza_time if n % 2 == 0 else 'its still not even', pizza_time return pizza_time n = random.randint(0, 10000) print(not_even(n))
- import random
- import time
- def not_even(n):
- pizza_time = time.ctime()
if n % 2 == 0:return 'its not even', pizza_timeelse:return 'its still not even', pizza_time- 'its not even', pizza_time if n % 2 == 0 else 'its still not even', pizza_time
- return pizza_time
- n = random.randint(0, 10000)
- print(not_even(n))
# TODO Write tests import solution # or from solution import example import time # test.assert_equals(actual, expected, [optional] message) @test.describe("Example") def test_group(): @test.it("test case") def test_case(): if time.ctime() == time.ctime(): test.assert_equals('its not even', 'its not even') or test.assert_equals('its still even', 'its still even')
- # TODO Write tests
- import solution # or from solution import example
- import time
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Example")
- def test_group():
- @test.it("test case")
- def test_case():
- if time.ctime() == time.ctime():
- test.assert_equals('its not even', 'its not even') or test.assert_equals('its still even', 'its still even')