mortgage = 153000
credit_score = input ("What's your credit score? ") # here I want to limit the input to integers (1-1000).
if int(credit_score) >= 650:
mortgage_payment = mortgage * 0.25
else:
mortgage_payment= mortgage * 0.28
print (f'Your mortgage payment will be: ${mortgage_payment}')
因为这只是一个开始,我还在看教程如何编码和学习沿着,并试图使事情更有趣+更复杂。:)
1条答案
按热度按时间lb3vh1jj1#