print("Please provide some basic information regarding your vehicle.")

while True:
    carMake = input("What make is your vehicle? ")
    if len(carMake) <= 0:
        print("This field cannot be empty")
    else:
        break

while True:
    carModel = input(f"What model of {carMake} do you have? ")
    if len(carModel) <= 0:
        print("This field cannot be empty")
    else:
        break

while True:
    productionYear = input(f"What year was your {carMake} {carModel} built? e.g 2023 ")
    if len(productionYear) <= 0:
        print("This field cannot be empty")
    else:
        try:
            productionYearInt = int(productionYear)
            if len(productionYear) == 4:
                if productionYearInt > 2025:
                    print("The year of manufacture can't be in the future")
                else:
                    break
            else:
                print("Please ensure that the year is entered in the correct 4 digit format.")
        except ValueError:
            print("The year should only contain whole numbers")

while True:
    print(f"What type of fuel does your {carMake} use?\nAvailable options are:\n1. Petrol\n2. Diesel\n3. Hybrid\n4. Electric")
    fuelType = input("Please enter the corresponding number. E.G 2 for Diesel ")
    try:
        fuelTypeInt = int(fuelType)
        if 1 <= fuelTypeInt <= 4:
            match fuelTypeInt:
                case 1:
                    fuelType = "Petrol"
                    break
                case 2:
                    fuelType = "Diesel"
                    break
                case 3:
                    fuelType = "Hybrid"
                    break
                case 4:
                    fuelType = "Electric"
                    break
        else:
            print("You have entered an invalid number. Please enter a number between 1 and 4.")
    except ValueError:
        print("You have entered an invalid value. Please select from the list available.")

message = ""
if 1 <= fuelTypeInt <= 3:
    while True:
        engineSize = input(f"What size engine does your {carMake} have? ")
        if len(engineSize) <= 0:
            print("This field cannot be empty")
        else:
            message = f" and has it an engine size of {engineSize}"
            break

completeMessage = f"Thank you for completing this form. As a recap, you have told us that you drive a {fuelType} {carMake} {carModel} built in {productionYearInt}" + message + "."
print(completeMessage)