Solutions will be available when this assignment is resolved, or after a few failing attempts.

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.


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

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
def more_than_3_elements(a_list): pass