If you have got a new Mac (Macbook) device or updated to macOS Sonoma 14 and wondering which version of Python is shipped with it, you can simply run the python3 version command.
% python3 --version
Python 3.9.6
Note: If you are on the Beta version of Sonoma, you will see that the above command may see a warning "xcode-select: note: No developer tools were found, requesting install." So you may need to download Command Line Tools first.

% python --version
zsh: command not found: python
This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0.
Please support independent contributors like Code2care by donating a coffee.
Buy me a coffee!

Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!