candytale55 / add_greetings Goto Github PK
View Code? Open in Web Editor NEWFunction add_greetings() takes a list of strings (names) as a parameter. In the function, creates an empty list where it adds the string "Hello, " and each name and appends the greeting to the list. Returns the new list containing the greetings.