Question: This is my code using PYTHON 3.3: principal_value = float(input(Enter the Principal Value of your investment:$ )) int(principal_value) time= float(input(Enter the Time (in years) you
This is my code using PYTHON 3.3:
principal_value = float(input("Enter the Principal Value of your investment:$ ")) int(principal_value) time= float(input("Enter the Time (in years) you plan to save your investment: ")) int(time) rate = float(input("Enter the Rate (2% = 0.02) you will collect on your investment: ")) int(rate)
interest = principal_value * time * rate
print("The Final Value of your investment will be: $",(principal_value+interest))
THis is Output:
Enter the Principal Value of your investment:$
Enter the Time (in years) you plan to save your investment:
Enter the Rate (2% = 0.02) you will collect on your investment:
The Final Value of your investment will be: $ 27500.0
This is question:
How do i make $27500.0 out put as $27,500.00?
I dont know how to add the comma and second decimal place. I need to have those to get credit please help me
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
