def check_domain(domain):
url = fhttps://api.howtofindout.com/whois/{domain}
response = requests.get(url)
if response.status_code == 200:
data = response.json()
if data['status'] == 'registered':
print(fThe domain {domain} is registered.)
else:
print(fThe domain {domain} is not registered.)
else:
print(Failed to retrieve the status of the domain.)