Learn
Code Challenge: Loops
Greetings

add_greetings(names)

Instructions

1.

Create a function named add_greetings() which takes a list of strings named names as a parameter.

In the function, create an empty list that will contain each greeting. Add the string "Hello, " in front of each name in names and append the greeting to the list.

Return the new list containing the greetings.

Folder Icon

Sign up to start coding

Already have an account?