title: Why am I getting an Invalid Syntax Error in the elif line?
body: <p>Can someone please tell me why I am getting an invalid syntax error here(python 3):</p>
  
  <pre><code>a = input("Do you want the alphabets in the pattern in ascending order or descending order? (Yes/No) ")
  if a == "Yes" or "yes":
      b = 65
      elif a == "No" or "no":
          b = 88
      else print("Invalid input")
  for x in range (5,0,-1):
      for y in range (0,x):
          print(" ", chr(y+b), end = "")
      print()
  </code></pre>