How can i make this variable work withing the if statement in python?
arrived = input('Have the doorbell ringed?: ')
if arrived == 'yes' or 'Yes':
doorbell = input('Is it from ifood?: ')
elif arrived == 'no' or 'No':
print('It is not here yet, keep waiting')
else:
print('Please answer the first question with yes or no')
if doorbell == 'yes' or 'Yes':
print('Your ifood have arrived!!!')
elif doorbell == 'no' or 'No':
print('It is not your ifood yet, keep waiting')
else:
print('Please answer the questions with yes or no')
I'm a beginner and this started as an exercice, i've been searching this for a while and i know variables are global in python but is there a way to make it work?