Source code for hello

"""
The world's most awesome hello world module
"""
import sys

__version__ = '0.0.2'


[docs]def hello(name='World'): """ Return a greeting for the given name. """ return 'Hello, {}'.format(name)
[docs]def main(): """ Reads input from args passed into the script and prints the output to start. """ args = sys.argv[1:] name = ' '.join(args).strip() if name: print(hello(name)) else: print(hello())
if __name__ == '__main__': main()