''' Purpose: examine a web file and report on it Name: Computing id: ''' # get a hold of the local module url for web support from url import get_contents # define repository for text files of interest TEXT_REPOSITORY = "http://www.cs.virginia.edu/~cs1112/text/" # input name of web file file_name = input( "Enter name of web file: " ) # input character of interest character_of_interest = input( "Enter single character: " ) # define the link to the web file -- TEXT_REPOSITORY + name of the web file link = ... # get the text contents of the date file using url function get_contents() text = ... # compute the number of characters in the web file number_of_characters = ... # compute the number of times the character of interest occurs in the web file number_of_character_of_interest = ... # compute the number of words in the web file words = ... number_of_words = ... # print the results print( number_of_characters, number_of_character_of_interest, number_of_words )