Python error urllib.request error in pycharm
Question: Getting the following error in when running this code using Pycharm

    
    
    import random
    import urllib.request
    
    
    
    def download_web_image(url):
        name = random.randrange(1, 1000)
        full_name = str(name) + ".jpg"
        urllib.request.urlretrive(url, full_name)
    
    download_web_image("https://realpython.com/learn/python-first-steps/images/pythonlogo.jpg")
    


Answer: You spelt urlretrieve wrong `urlretrive -> urlretrieve`:

    
    
     urllib.request.urlretrieve(url, full_name)
    

