import urllib.request #Find out how much the Earth slowed down between 1821 and 1970. #You won't be responsible for the "urllib.request" # module on the exam; it's interesting to see this # kind of functionality. def main(): url = 'http://www.cs.toronto.edu/~pgries/pybook/data/TSDL/andrews5.dat.txt' localFile, headers = urllib.request.urlretrieve(url) contents = open(localFile) total = 0 for line in contents: print(line,end="") values = line.split() for num in values: total = total + int(num) contents.close() print("total is",total) main()