title: Syntax error in Python 3.7: in line "if (year % 4) and (year % 100) and (year % 400):"
body: <p>I have the following program to find out the leap year</p>
  
  <pre><code>year = int(input("Enter a year: ")
  if (year % 4 == 0) and (year % 100 == 0) and (year % 400 == 0):
      print("True")
  else: 
      print("False")
  </code></pre>
  
  <p>However, I'm getting following syntax error </p>
  
  <pre><code>File "is_leap.py", line 2
  if (year % 4) and (year % 100) and (year % 400):
                                                 ^
  </code></pre>
  
  <p>I do not understand why it is showing syntax error in <strong>:</strong></p>
  
  <p>P.S: I am newbie to Python and programming, and I knew there are solutions in online to figure out leap year. But I'm trying to figure this in my way. </p>
  
  <p>I'm trying to understand why it's showing this syntax error while the "if" condition should have : in Python.</p>