# Program 6-12
# Reads the values in video_times.txt
# file and calculates their totals.

def main():

	video_file = open('video_times.txt', 'r')

	total = 0.0

	count = 0

	print('Here are the running times for each video:')

	for line in video_file:
		run_time = float(line)

		count += 1

		print('Video #', count, ': ', run_time, sep='')

		total += run_time

	video_file.close()

	print('The total running time is', total, 'seconds.')

main()