# product.py, by chaynes@indiana.edu # input a series of numbers and print their product product = 1 while True: text = raw_input('Enter number, or to exit: ') if text == '': break product = product * float(text) # same as: product *= float(text) print 'Product =', product