def hello(you):
    print('Hello ' + you + '!')

print(__name__)

if __name__ == '__main__':
    hello('world')
    hello('Jane')
    hello('Michael')

Resource created Wednesday 05 August 2015, 11:18:18 AM, last modified Wednesday 05 August 2015, 11:18:40 AM.

file: greet.py


Back to top

COMP9021 15s2 (Principles of Programming) is powered by WebCMS3
CRICOS Provider No. 00098G