PDA

View Full Version : Control Structures in Python


Linux
08-14-2009, 09:49 PM
The following program has two mistakes in it that cause it to print an incorrect answer. # Computes how much interest is earned on a given amount of principal. principal = float(raw_input('Enter principal: ')) interestRate = float(raw_input('Enter interest rate as a percent: ')) years =...