Hi I am a total beginner in programming. Can anyone tell me why this always returns 'no mortgage'?
job = input('do you have a job?, Y or N ')
wage = int(input('how much do you earn a year? '))
if job == 'Y' and wage<20000 :
print ('you can have a mortgage')
else:
print('no mortgage')
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire