16 lines
381 B
Python
16 lines
381 B
Python
|
|
# consider the following line from the autoloan program:
|
|
|
|
principal = float(input("Enter a value for the principal: "))
|
|
|
|
|
|
print(f"You entered the value {principal}")
|
|
|
|
# Create an if statement to limit the loan principal to > $1000 and < $120,000.
|
|
|
|
|
|
if principal < 1000 or principal > 120000:
|
|
print(f"The value of the principal must between $1000.00 and $120000.00")
|
|
exit(-1)
|
|
|
|
|