human
What is a good Python function to see if something is formatted properly.
assistant
Here is a Python function to see if something is formatted properly

import urllib.request, urllib.parse, urllib.error

def is_url(url):
    """Checks if url is a valid url."""
    if url.startswith('http://') or url.startswith('https://'):
        return True
    return False

# Enter the url
url = "http://www.google.com"

# Calling the function
print((is_url(url)))

#Example Output
# True

#Remember to inspect code for bugs.