First of all,
bare with me I'm a beginner and I've already put an effort in, but can't get it going... couldn't find a similar question too.
I'm stuck, with does the input not trigger the if-conditional so that the follow-up question is posed? How to get it to work?
Thanks in advance!
list = []
question = print(input('Do you have a job? Answer with yes or no.'))
if question == 'yes':
salary = print(int(input('What is your salary?')))
list.append(salary)
else:
print('Go get one.')
Output:
yes
Go get one.
Aucun commentaire:
Enregistrer un commentaire