in python urgent please
. Write a function getResource() that takes a URL (a string) as input, downloads the resource associated with the URL, and saves the resource in the current working directory. Using this function you can download Google’s logo as follows:
>>> getResource('http://www.google.com/images/srpr/logo11w.png')
>>>