I was wondering if a value that is defined by the user at the start of a program, and not modified by the program, is considered a constant or a variable. I know that a constant is a word/letter that holds a value that is not changed during the execution of a program (EG: pi or e), and a variable is also a word/letter that holds a value during the execution of a program, but it's value can be changed.
For example, in the code below, would the identifier interest
be considered a variable or a constant?
#Python 3
#Program to calculate the interest gained in a bank account after 1 year
interest=float(input("Interest rate: "))
while True:
value=float(input("Account value: "))
value=(value * interest)-value
print(value)
print()