# File: Exercise5_3.py # Author: Emily G. Allen # comments to be filled in from time import * # gets local time and returns minutes def getTime(): # get time year, month, day, hour, minutes, seconds, weekday, day_of_year, daylight = localtime() return minutes # program def main(): count = 0 # counting variable startTime = getTime() # starting time currentTime = startTime # current time while currentTime < startTime + 2: # for 'two minutes' count = count + 1 currentTime = getTime() print 'After two minutes the sum is: ', count # invoke main main()