ChamplainTechJournals/python-csi160/week05/week-5Practice-Problems/part6.py
2025-04-19 23:42:08 -04:00

13 lines
568 B
Python

def first_last_name(full_name):
""" Returns a tuple with the first and last name.
:param full_name: (str) Contains a first and last name seperated by a space.
There is only a single space in the full_name.
:return: (tuple) Tuple containing first and last names
"""
return tuple(full_name.split(" "))
# Leave this part for easily testing your function
print('"Billie Holiday" first_last_name returns', first_last_name("Billie Holiday"))
print('"James Brown" first_last_name returns', first_last_name("James Brown"))