Solution 1

def get_bookmark_index(list_of_pages):
    return list_of_pages.index("bookmark")

Get Bookmark Index

Complete the function get_bookmark_index so that it searches the parameter list_of_pages
and returns the index of the word "bookmark".

Test Cases

test get bookmark index - Run Test

def test_get_bookmark_index():
    assert get_bookmark_index([27, 35, 100, "bookmark", 111]) == 3
def get_bookmark_index(list_of_pages): pass