Having some difficulty using a While function alongside an IF so that if an INPUT hasn't been met, the same question would be repeatedly asked until the outcome was correct.
county = input(str("County London/Kent/Essex: ")).upper()
while county != ("LONDON") and county != ("KENT") and county != ("ESSEX"):
if county == ("LONDON"):
county = ("LONDON")
elif county == ("KENT"):
county = ("KENT")
elif county == ("ESSEX"):
county = ("ESSEX")
else:
county = input(str("Invalid - Please enter an accepted county: ")).upper()
If the user doesn't enter London, Kent or Essex, the input message would be asked until one of these are entered.