def TemperatureConverter(temperature, direction=1):
    """
	direction 1: from fahrenheit to celsius
	direction 2: from celsius to fahrenheit
	"""
    temp = float(temperature)
    if direction == 1:
        print('Convert Fahrenheit to Celsius')
        result = (temp - 32) * 5 / 9
    elif direction == 2:
        print('COnvert Celsius to Fahrenheit')
        result = 9 * temp / 5 + 32
    else:
        raise ValueError('Direction is type of integer in 1 or 2')
    return round(result, 1)
