<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def continuous_periods(self):
 """ Return a list of continuous data periods by removing the data gaps from the overall record. """

        result = []

        # For the first period
        start_date = self.start_date
        for gap in self.pot_data_gaps:
            end_date = gap.start_date - timedelta(days=1)
            result.append(PotPeriod(start_date, end_date))
            # For the next period
            start_date = gap.end_date + timedelta(days=1)
        # For the last period
        end_date = self.end_date
        result.append(PotPeriod(start_date, end_date))

        return result