<gh_stars>0
"""An example library for converting temperatures."""


def convert_f_to_c(temperature_f):
    """Convert Fahrenheit to Celsius."""
    temperature_c = (temperature_f - 32) * (5/9)
    return temperature_c


def convert_c_to_f(temperature_c):
    """Convert Celsius to Fahrenheit."""
    temperature_f = temperature_c * (9/5) +32
    return temperature_f

def convert_f_to_k(temperature_f):
    """Convert Fahrenheit to Kelvin"""
    temperature_k = (temperature_f - 32) * (5/9) + 273.15
    return temperature_k

def convert_c_to_k(temperature_c):
    """Convert Celcius to Kelvin:"""
    temperature_k = temperature_c + 273.15 
    return temperature_k

def convert_f_to_all(temperature_f):
    """Give all conversions from Fahrenheit."""
    print("the temperature ", temperature_f, "degrees F is:")
    c = convert_f_to_c(temperature_f)
    k = convert_f_to_k(temperature_f)
    print("\t ",c," degrees celsius")
    print("\t ",k," degrees kelvin")
"""An example library for converting temperatures."""


def convert_f_to_c(temperature_f):
    """Convert Fahrenheit to Celsius."""
    temperature_c = (temperature_f - 32) * (5/9)
    return temperature_c


def convert_c_to_f(temperature_c):
    """Convert Celsius to Fahrenheit."""
    temperature_f = temperature_c * (9/5) +32
    return temperature_f

def convert_f_to_k(temperature_f):
    """Convert Fahrenheit to Kelvin"""
    temperature_k = (temperature_f - 32) * (5/9) + 273.15
    return temperature_k

def convert_c_to_k(temperature_c):
    """Convert Celcius to Kelvin:"""
    temperature_k = temperature_c + 273.15 
    return temperature_k

def convert_f_to_all(temperature_f):
    """Give all conversions from Fahrenheit."""
    print("the temperature ", temperature_f, "degrees F is:")
    c = convert_f_to_c(temperature_f)
    k = convert_f_to_k(temperature_f)
    print("\t ",c," degrees celsius")
    print("\t ",k," degrees kelvin")
An example library for converting temperatures. Convert Fahrenheit to Celsius. Convert Celsius to Fahrenheit. Convert Fahrenheit to Kelvin Convert Celcius to Kelvin: Give all conversions from Fahrenheit.