#NEWLINE# def total_value( metric ) : #NEWLINE# #INDENT# 'Given a time series of values, sum the values' #NEWLINE# total = 0 #NEWLINE# for i in metric : #NEWLINE# #INDENT# total += i #NEWLINE# #UNINDENT# return total