(domain)
return '.'.join(domain.split('.')[-2:])
Get the top level domain from a domain string.

    Args:
        domain: string with a full domain, eg. www.google.com

    Returns:
        string: TLD or a top level domain extracted from the domain,
        eg: google.com
Get the top level domain from a domain string.
Get the top level domain from a domain string .
def get_tld_from_domain(domain):
    """Get the top level domain from a domain string.

    Args:
        domain: string with a full domain, eg. www.google.com

    Returns:
        string: TLD or a top level domain extracted from the domain,
        eg: google.com
    """
    return '.'.join(domain.split('.')[-2:])
def get_tld_from_domain ( domain ) : return '.' . join ( domain . split ( '.' ) [ - 2 : ] )