migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
13
python-csi160/week05/week-5Practice-Problems/part6.py
Normal file
13
python-csi160/week05/week-5Practice-Problems/part6.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
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"))
|
Loading…
Add table
Add a link
Reference in a new issue