If Statements

is_male = True
is_tall = True

if is_male or is_tall:
  print("You are a male.")
else:
  print("You are not a male.")
//Output : You are a male.


if is_male or is_tall:
  print("You are a male or tall or both.")
else:
  print("You neither male nor tall.")
//Output : You are a male or tall or both.


if is_male and is_tall:
  print("You are a tall male.")
else:
  print("You are either not male or not tall or both.")
//Output : You are a tall male.


if is_male and is_tall:
  print("You are a tall male.")
elif is_male and not is_tall:
  print("You are a short male.")
elif not is_male and is_tall:
  print("You are not a male but are tall.")
else:
  print("You are not a male and not tall.")
//Output : You are a tall male.