# Write a function to open and read data from http://www.cs.virginia.edu/~up3f/cs1110/practice-of-the-day/zipLookup.java. # Using a regular expression to find all zip codes and write them into an output file named "zipcode.txt" # At the end of the file, write the number of zip codes found. # # Consider the difference when opening an output file with a "write" mode or an "append" mode # import urllib.request import re def find_zipcode(url): find_zipcode("http://www.cs.virginia.edu/~up3f/cs1110/practice-of-the-day/zipLookup.java")