solutions

More than 3 elements

Define a function 'more_than_3_elements' that receives a list and returns True
if it has more than 3 elements and False if not.

Examples:

>>> more_than_3_elements([1,2,3,4,5])
True
>>> more_than_3_elements([1,2,3])
False

Test Cases

test not more than 3 elements - Run Test

def test_more_than_3_elements():
    assert more_than_3_elements([1, 2, 3, 4, 5]) is True

test more than 3 elements - Run Test

def test_not_more_than_3_elements():
    assert more_than_3_elements([1, 2, 3]) is False