# # name = input("Please enter your name: ") 

# # prompt = "If you tell us who you are, we can personalize the mesages you see."
# # prompt += "\nWhat is your first name? "

# # name = input(prompt)
# # print("Hello, %s!" % name.title())

# # age = input("How old are you?")

# def greet_user():
    # """Display a simple greeting."""
    # print("Hello!")

# greet_user()

def get_formatted_name(first_name, last_name):
    """Return a full name, neatly formatted."""
    full_name = first_name + ' ' + last_name
    return full_name.title()

while True:
    print("\Please tell me your name:")
    print("(enter 'q' at any time to quit)")

    f_name = input("First name: ")
    if f_name == 'q':
        break
    l_name = input("Last name: ")
    if l_name == 'q':
        break

    formatted_name = get_formatted_name(f_name, l_name)
    print("\nHello, %s!" % formatted_name)
    
