import requests


def get_tinyurl(url):
    """Create and return the tinyURL."""
    tiny_url_api = f'http://tinyurl.com/api-create.php?url={url}'
    response = requests.get(tiny_url_api)
    return response.text