Hackbright Code Challenges

Concatenate Lists: Solution

Concatenate Lists: Solution

Problem

Concatenate Lists

Whiteboard

Easier

Concepts

Lists

Download

concat-lists-solution.zip


def concat_lists(list1, list2):
    """Combine lists."""

    # START SOLUTION

    for item in list2:
        list1.append(item)

    return list1