def pseudocode(algorithm):
    """Print the pseudocode for the given algorithm."""
    from urllib.request import urlopen
    from IPython.display import Markdown
    algorithm = algorithm.replace(' ', '-')
    url = (
        'https://raw.githubusercontent.com/aimacode/aima-pseudocode/master/md/{}.md'
        .format(algorithm))
    f = urlopen(url)
    md = f.read().decode('utf-8')
    md = md.split('\n', 1)[-1].strip()
    md = '#' + md
    return Markdown(md)
