#!/usr/bin/python # divide.py # # Divides two numbers # # AMJ # 2007-01-17 top = input ('Enter a number: ') bottom = input ('Enter another number: ') if bottom == 0: print 'Cannot divide by zero!' else: print top, 'divided by', bottom, 'is', top / (bottom * 1.0)