Curso_Intensivo_de_PYTHON/chapter_11/names.py
2023-06-02 17:22:53 +02:00

13 lines
388 B
Python

from name_function import get_formatted_name
print("Enter 'q' at any time to quit.")
while True:
first = input("\nPlease give me a first name: ")
if first == 'q':
break
last = input("Please give me a last name: ")
if last == 'q':
break
formatted_name = get_formatted_name(first, last)
print(f"\tNeatly formatted name: {formatted_name}.")