lass="arabic simple" start="2">
<li><p>Update Homebrew and install Python 3.12:</p></li>
</ol>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>brew<span class="w"> </span>update
brew<span class="w"> </span>install<span class="w"> </span>python@3.12
</pre></div>
</div>
<ol class="arabic simple" start="3">
<li><p>Verify the installation:</p></li>
</ol>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python3.12<span class="w"> </span>--version
<