20.00-python_intro/calculate_lambda.py
def calculate_lambda(N, N_o, t):
    """
    This function will return a tuple with the value of lambda and the value
    of t_0.5.
    """

    decay_constant = math.log(N/N_o)/t
    half_life = math.log(2)/decay_constant

    return (decay_constant, half_life)

    This function will return a tuple with the value of lambda and the value
    of t_0.5.
    
This function will return a tuple with the value of lambda and the value
of t_0.5.
This function will return a tuple with the value of lambda and the value of t_0 . 5 .
def calculate_lambda(N, N_o, t):
    decay_constant = math.log(N/N_o)/t
    half_life = math.log(2)/decay_constant
    return (decay_constant, half_life)
def calculate_lambda ( N , N_o , t ) : decay_constant = math . log ( N / N_o ) / t half_life = math . log ( 2 ) / decay_constant return ( decay_constant , half_life )
This function will return a tuple with the value of lambda and the value
of t_0.5.
This function will return a tuple with the value of lambda and the value of t_0 . 5 .
"""
    This function will return a tuple with the value of lambda and the value
    of t_0.5.
    """
N
N_o
t