# This program asks a series of questions that will capture and
# store the elements of a person's address.
# Then it will print out the full address.
# Asks the user for all the elements of their address
last_name = input("Last Name: ")
first_name = input("First Name: ")
street_number = input("Street Number: ")
street_name = input("Street Name: ")
unit_number = input("Apartment/PO Box (press Enter if not applicable): ")
city = input("City: ")
state = input("State: ")
zip_code = input("Zip Code: ")
# Creates four tuples for the four lines of address with proper capitalization
tuple_line1 = last_name.title(), first_name.title()
tuple_line2 = street_number, street_name.title()
tuple_line3 = unit_number.upper(),
tuple_line4 = city.title(), state.upper(), zip_code
# Prints out the full address
print(f"{tuple_line1[0]}, {tuple_line1[1]}")
print(f"{tuple_line2[0]} {tuple_line2[1]}")
# Checks to see if the user did input an apartment/po box number
if unit_number:
print(f"{tuple_line3[0]}") #adds the additional line of address
print(f"{tuple_line4[0]}, {tuple_line4[1]} {tuple_line4[2]}")