A tiny Python program to check that Python is working. Try running this program from the command line like this:
python hello.py
python hello.py Alice
Hello World -or- Hello Alice
import sys
# Define a main() function that prints a little greeting.
def main():
# Get the name from the command line, using 'World' as a fallback.
if len(sys.argv) >= 2:
name = sys.argv[1]
else:
name = 'World'
print 'Hello', name
# This is the standard boilerplate that calls the main() function.
if **name** == '**main**':
main()