Unformatted text preview: print 'reference the formula is:' print ' 1 cup = 8 fluid ounces' print # The cups_to_ounces function accepts a number of # cups and displays the equivalent number of ounces. def cups_to_ounces(cups): ounces = cups * 8 print 'That converts to', ounces, 'ounces.' # Call the main function. main()...
View Full Document
- Spring '09
- Control flow, Imperial units, United States customary units, intro screen. intro, screen. def intro