human
how to get domain part of a url in.
assistant
Here is a Python function to get domain part of a URL

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

def get_domain(url):
    """Gets the domain part of a url.

    Args:
      url: The url to be checked.

    Returns:
      The domain part of the url.
    """
    return url.split("/")[0]

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

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

#Example Output
# https:

#Remember to inspect code for bugs.