def check_domain_availability(domain):
try:
response = requests.get(fhttp://{domain})
if response.status_code == 200:
print(fThe domain {domain} is available.)
else:
print(fThe domain {domain} is not available.)
except requests.exceptions.ConnectionError:
print(fThe domain {domain} is not available.)