# this program saves a sequence of video running times
# to the video_times.txt files

def main():
    # get the numbers of videos in the project
    num_videos = int( input( "How many videos are in the project? " ) )

    # open the file to hold the running times
    video_file = open( 'video_times.txt', 'w' )

    # get each video's running time and write
    # it to the file
    print( "Enter the running times for each video." )
    for count in range( 1, num_videos+1 ):
        run_time = float( input( "Video #" + str( count ) + ': ' ) )

    # close the file
    video_file.close()
    print( "The times have been saved to video_times.txt." )

# call the main function
main()

    
