Solution 1

def simple_list():
    return [1, 'a', True]

Define a simple list

In the code you'll find a simple function simple_list returning an empty list. Modify the program and return instead a list with the elements 1, 'a' and True. Example:

print(simple_list())  # [1, 'a', True]

Test Cases

test list contains elements - Run Test

def test_list_contains_elements():
    assert simple_list() == [1, 'a', True]
def simple_list(): return []