temperature_tracker.py
def average_from(self, temp_time_list):
        """
        Returns the average temperature reading in the specified list

        Calculates the average temperature from an input list of tuples that contain
         temperature floats and time data

        Parameters
        -------
        temp_list : [(float, time)]
            A list of (temperature, time) tuples that each specify a temperature
             readings and the time the reading was taken

        Returns
        -------
        float
            The average temperature reading from the input list
        """
        total_temp = 0.0
        count = 0

        for temp, time in temp_time_list:
            total_temp += temp
            count += 1

        return total_temp / count

        Returns the average temperature reading in the specified list

        Calculates the average temperature from an input list of tuples that contain
         temperature floats and time data

        Parameters
        -------
        temp_list : [(float, time)]
            A list of (temperature, time) tuples that each specify a temperature
             readings and the time the reading was taken

        Returns
        -------
        float
            The average temperature reading from the input list
        
Returns the average temperature reading in the specified list
Calculates the average temperature from an input list of tuples that contain
temperature floats and time data

Parameters

temp_list : [(float, time)]
A list of (temperature, time) tuples that each specify a temperature
readings and the time the reading was taken

Returns

float
The average temperature reading from the input list
Returns the average temperature reading in the specified list Calculates the average temperature from an input list of tuples that contain temperature floats and time data Parameters temp_list : [ ( float time ) ] A list of ( temperature time ) tuples that each specify a temperature readings and the time the reading was taken Returns float The average temperature reading from the input list
def average_from(self, temp_time_list):
        total_temp = 0.0
        count = 0
        for temp, time in temp_time_list:
            total_temp += temp
            count += 1
        return total_temp / count
def average_from ( self , temp_time_list ) : total_temp = 0.0 count = 0 for temp , time in temp_time_list : total_temp += temp count += 1 return total_temp / count
Returns the average temperature reading in the specified list
Calculates the average temperature from an input list of tuples that contain
temperature floats and time data
Returns the average temperature reading in the specified list Calculates the average temperature from an input list of tuples that contain temperature floats and time data
"""
        Returns the average temperature reading in the specified list

        Calculates the average temperature from an input list of tuples that contain
         temperature floats and time data

        Parameters
        -------
        temp_list : [(float, time)]
            A list of (temperature, time) tuples that each specify a temperature
             readings and the time the reading was taken

        Returns
        -------
        float
            The average temperature reading from the input list
        """
self
temp_time_list