Checkpoint 13.17.1.
Create a function called
decode
that takes in a parameter link
and returns a string that contains the contents of the link
using urllib. Between each word, there should be a space. Also, a space at the end is okay. For example, decode('http://data.pr4e.org/romeo.txt')
should return 'But soft what light through yonder window breaks It is the east and Juliet is the sun Arise fair sun and kill the envious moon Who is already sick and pale with grief '
.