input: Write a python function to calculate the accuracy of a logistic regression model.
  assert calculate_accuracy([1, 0, 1, 1], [1, 0, 1, 0]) == 0.75
  assert calculate_accuracy([0, 0, 1, 1], [0, 1, 1, 1]) == 0.75
  assert calculate_accuracy([1, 1, 1, 1], [1, 1, 1, 1]) == 1.0
output: def calculate_accuracy(y_true, y_pred):
      correct_predictions = sum(t == p for t, p in y_true and y_pred)
      total_predictions = len(y_true)
      accuracy = correct_predictions / total_predictions
      return accuracy