In python, if I wanted someone to enter the loan amount in dollars, I could encode something like this:
L = float(input("Enter the loan amount: $"))
But what if I want, say, an interest rate that represents interest. If I encoded:
I = float(input("Enter the interest rate: "))
How can I get the percent sign,%, to display after input?
source
share