text: from mysql.connector.errors import ProgrammingError
  from bd import nova_conexao
  
  sql = 'SELECT * FROM contatos LIMIT 2 OFFSET 1'
  
  with nova_conexao() as conexao:
      try:
          cursor = conexao.cursor()
          cursor.execute(sql)
          contatos = cursor.fetchall()
      except ProgrammingError as e:
          print(e.msg)
      else:
          for contato in contatos:
              print(f'{contato[2]:2d} - {contato[0]:20s} Telefone: {contato[1]}')