#!/usr/bin/env python
"""
A simple calculator package in python

"""
import sys

if __name__ == '__main__':
	command = sys.argv[1]
	nums = [int(a) for a in sys.argv[2:]]
	if (command == 'add'):
		print sum(nums)
	elif command == 'multiply':
		print reduce(lambda x, y: x * y, nums)


#!/usr/bin/env python
"""
A simple calculator package in python

"""
import sys

if __name__ == '__main__':
	command = sys.argv[1]
	nums = [int(a) for a in sys.argv[2:]]
	if (command == 'add'):
		print sum(nums)
	elif command == 'multiply':
		print reduce(lambda x, y: x * y, nums)
	elif command == 'divide':
		print reduce(lambda x, y: x / y, nums)

add divide