I am new to Python, and I want to know how can I add more than one value after ==
?
Here is the code:
gender = input('Are You Male Or Female ? ')
if gender.capitalize() == 'Male':
print('You Got 10000 Rs')
elif gender.capitalize() == 'Female':
print('You Got 5000 Rs')
else:
print('You Got 1000 Rs')
As you can see, the elif
has 'Female'
after ==
. What if I want to add another value after 'Female'
?