Human: Give me a Python function to confidence interval "failure rate". Assistant: 
Here is a Python function to confidence interval "failure rate"

import math

def confidence_interval_failure_rate(failure_rate, confidence_level):
    """
    Confidence interval for failure rate.
    """
    z = 1.96
    n = 1
    p = failure_rate
    q = 1 - p
    e = z * (p * q / n) ** (0.5)
    return (p - e, p + e)

# Enter the failure rate
failure_rate = 0.1

# Enter the confidence level
confidence_level = 0.95

# Calling the function
confidence_interval = confidence_interval_failure_rate(failure_rate, confidence_level)

# Printing the confidence interval
print(confidence_interval)

#Example Output
# (-0.4880000000000001, 0.6880000000000001)

#Remember to inspect code for bugs.