<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_exercises(self, *exercises):
 """Add the exercises to the day. The method will automatically infer whether a static or dynamic exercise is passed to it. Parameters *exercises An unpacked tuple of exercises. Examples ------- True True """

        for exercise in list(exercises):
            if isinstance(exercise, DynamicExercise):
                self.dynamic_exercises.append(exercise)

            if isinstance(exercise, StaticExercise):
                self.static_exercises.append(exercise)