input: Write a function to convert the given SQL query into a Python program. The function should establish a connection to the database, execute the query for the year 2020, fetch the results, and print them.
  
  
  import datetime, pyodbc
  
  def sql_to_python(connection_details):
      # Establish a connection to the database
      conn = pyodbc.connect(connection_details)
      cursor = conn.cursor()
  
      # Get the year of the order date
      sql = "SELECT * FROM orders"
      query_date = 2020
      where_clause = "WHERE YEAR(order_date) = ?"
  
      # Execute the query
      cursor.execute(sql + " " + where_clause, query_date)
      results = cursor.fetchall()
  
      # Output the results
      for result in results:
          print(result)
      
      # Close the cursor and connection
      cursor.close()
      conn.close()
  
  assert sql_to_python("<connection details>")==None
  
output: import datetime, pyodbc
  
  def sql_to_python(connection_details):
      conn = pyodbc.connect(connection_details)
      cursor = conn.cursor()
      sql = "SELECT * FROM orders"
      query_date = 2020
      where_clause = "WHERE YEAR(order_date) = ?"
      cursor.execute(sql + " " + where_clause, query_date)
      results = cursor.fetchall()
      for result in results:
          print(result)
      cursor.close()
      conn.close()