input: Write a python function to calculate the attendance percentage of a student.
  assert calculate_attendance_percentage(Student('John', {'2023-01-01': True, '2023-01-02': False, '2023-01-03': True})) == 66.67
  assert calculate_attendance_percentage(Student('Jane', {'2023-01-01': True, '2023-01-02': True, '2023-01-03': True, '2023-01-04': False})) == 75.0
  assert calculate_attendance_percentage(Student('Jim', {'2023-01-01': False, '2023-01-02': False, '2023-01-03': False})) == 0.0
output: class Student:
      def __init__(self, name, attendance):
          self.name = name
          self.attendance = attendance
  
  def calculate_attendance_percentage(student):
      total_days = len(student.attendance)
      present_days = sum(student.attendance.values())
      if total_days == 0:
          return 0.0
      return round((present_days / total_days) * 100, 2)