user28356: The following Python code gives the best move in coordinate notation:
import chess
import chess.engine
sfEngineTxt = "E:\Chess\Stockfish\stockfish_14_x64_modern"
sfEngine = chess.engine.SimpleEngine.popen_uci(sfEngineTxt)
sfInfo = sfEngine.analyse(chess.Board(), chess.engine.Limit(depth=11), info=chess.engine.INFO_ALL)
moveArray = sfInfo['pv']
moveTxt1 = str(moveArray[0])
print(moveTxt1)
sfEngine.quit()

This outputs e2e4. What I want is e4, I.e. algebraic notation or san notation.

user28439: There is Board.san() which gives you the algebraic notation. You can check the docs here.
You will need a Board object for it.
import chess

board = chess.Board()
move = chess.Move.from_uci("e2e4")
print(board.san(move))
# Output: e4


28356: <p>The following Python code gives the best move in coordinate notation:</p>
<pre><code>import chess
import chess.engine
sfEngineTxt = &quot;E:\Chess\Stockfish\stockfish_14_x64_modern&quot;
sfEngine = chess.engine.SimpleEngine.popen_uci(sfEngineTxt)
sfInfo = sfEngine.analyse(chess.Board(), chess.engine.Limit(depth=11), info=chess.engine.INFO_ALL)
moveArray = sfInfo['pv']
moveTxt1 = str(moveArray[0])
print(moveTxt1)
sfEngine.quit()
</code></pre>
<p>This outputs <strong>e2e4</strong>. What I want is <strong>e4</strong>, I.e. algebraic notation or san notation.</p>
 28439: <p>There is <code>Board.san()</code> which gives you the algebraic notation. You can check the docs <a href="https://python-chess.readthedocs.io/en/latest/core.html#chess.Board.san" rel="nofollow noreferrer">here</a>.</p>
<p>You will need a Board object for it.</p>
<pre><code>import chess

board = chess.Board()
move = chess.Move.from_uci(&quot;e2e4&quot;)
print(board.san(move))
# Output: e4
</code></pre>
