input: Write a function to convert the given SQL query into a Python program using the pyodbc library. The function should take the connection details as a string parameter and return the query results.
  
  
  import datetime, pyodbc
  
  def convert_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()
      
      # Return the results
      return results
  
  # Example usage
  assert convert_sql_to_python("<connection details>") == [('order1', '2020-01-01'), ('order2', '2020-02-01')]
  assert convert_sql_to_python("<connection details>") == []
  assert convert_sql_to_python("<connection details>") == [('order3', '2020-03-01')]
  
output: def convert_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()
      return results