import pprint


def get_storage_locations_to_compare(possible_storage_locations):
    """This function will ask the user for the storage locations to compare and output them in a tuple."""

    storage_location1 = None
    storage_location2 = None

    print("The possible storage locations are: ")
    pprint.pprint(possible_storage_locations)

    while storage_location1 not in possible_storage_locations:
        storage_location1 = str(input("Type the name of the first storage location that you would like to compare.  "))
        if storage_location1 in possible_storage_locations: 
            print("Going to compare ", storage_location1)
        else:
            print("That storage location does not exist. Please type another storage location.  ")

    while storage_location2 not in possible_storage_locations:
        storage_location2 = str(input("Type the name of the second storage location that you would like to compare.  "))
        if storage_location2 in possible_storage_locations:
            print("Going to compare ", storage_location2)
        else:
            print("That storage location does not exist. Please type another storage location.  ")

    storage_locations = (storage_location1, storage_location2)

    return storage_locations