hello world

      1 min read      ·

Hello World! This post contains a collection of languages featured on this site so that I can easily test syntax highlighting support is working. Please feel free to make merge requests for improvements to any of the below.

Python

Rewritten by Greg Trahair

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Is it a greeting or a call for help?"""


def hello_world():
    """Returns a greeting.

    >>> hello_world()
    'Hello, world!'

    """
    return 'Hello, world!'


if __name__ == '__main__':
    import doctest
    doctest.testmod()

    print(hello_world())

comments powered by Disqus