def calculate_accuracy(truth,pred): 
    """
    Args:
      truth: Truth values (list)
      pred: Predicted values (list)
    Returns:
      Accuracy (float)
    """
    pos,neg=0,0 
    for i in range(0,len(pred)):
        if pred[i] == truth[i]:
            pos = pos+1
        else:
            neg = neg+1
    acc=(float(pos)/float(len(pred)))*100
    return acc