ChamplainTechJournals/python-csi160/week06/week6practiceproblems/part4.py
2025-04-19 23:42:08 -04:00

21 lines
573 B
Python

def introductions(names):
"""Prints introductions.
An introduction is 'Hello' followed by a space and a name.
Include a newline after each introduction.
Example:
'Hello Josh'
Important: Your function should use print() and not have a return statement
:param names: (list) First Names as strings
:return: None
"""
for name in names:
print("Hello", name)
# Leave this part for easily testing your function
sample_names = input('Enter the names separated by a comma and a space: ').split(', ')
introductions(sample_names)