""" Purpose: introduce CS 1112 module url """ # get access to web-based data support import url # set data web folder location WORDS_WEB_FOLDER = "http://www.cs.virginia.edu/~cs1112/datasets/words/" # set file name file_name = "word-of-the-day" # specify link link = WORDS_WEB_FOLDER + file_name # read web page contents = url.get_contents( link ) # clean up word = contents.strip() # reveal word print( word )