Write a Python program to compute the probability of an event based on the input data.
data = {'success': 833, 'failure': 917}
def probability_calc(data):
    total = data['success'] + data['failure']
    return data['success']/total