Write a Python class WeatherForecast
that stores daily weather data (temperature and rainfall) and has methods to calculate the average temperature and total rainfall for a given period. The class should provide methods to add daily weather data.
Example 1:
Input: add_data(25, 10), add_data(28, 5), average_temperature()
Output: 26.5
Example 2:
Input: add_data(25, 10), add_data(28, 5), total_rainfall()
Output: 15