title: Python prints the parenthesis from the function
body: <p>Simple code but a a bit of an odd issue. Python tends to print the brackets and coma in the print function. This only happens in row 5 and row 7 but not for the last row. Any idea what's wrong? </p>
  
  <p>e.g. output for each row:</p>
  
  <p>(2016, is a leap year)</p>
  
  <p>(2015, is not a leap year)</p>
  
  <p>Invalid year. </p>
  
  <pre><code>year_str = input("Please enter a numerical year: ")
  year = float(year_str)
  if year == int(year) and year &gt; 0:
      if (year/4)==int(year/4) and (year/100)!=int(year/100) or (year/400)==int(year/400):
          print(year_str, " is a leap year.")
      else:
          print(year_str, "is not a leap year.")
  else:
      print("Invalid year.")
  </code></pre>