Ask coding questions

← Back to all posts
mortgage calculator
bose (0)

how to i add years at the end of my input
format("%.2f" % monthlyPayment))

Voters
bose (0)
Commentshotnewtop
Zavexeon (303)

Can't view your code (repl has been wacky recently), but I think I understand the question.

Maybe try something like this?

age = input("How old are you:")

print(age + " years") # print(f"{age} years") and print("%s years"%(age)) works too