WARNING: Python 2.7 is not recommended [macOS Big Sur]

code2care@mac ~ % python

WARNING: Python 2.7 is not recommended. 
This version is included in macOS for compatibility with legacy software. 
Future versions of macOS will not include Python 2.7. 
Instead, it is recommended that you transition to using 'python3' from within Terminal.

Python 2.7.16 (default, Nov 23 2020, 08:01:20) 
[GCC Apple LLVM 12.0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri on darwin
Type "help", "copyright", "credits" or "license" for more information.

If you are working on macOS Big Sur, you must have noticed that when you try to access python on Terminal you get an warning saying Python 2.7 is not recommended. You should update to the latest version of Python that is Python 3 (3.8 currently is the latest).

Getting Python 3 on macOS Big Sur
Getting Python 3 on macOS Big Sur

The most easy way to get Python 3 or 3.8 is by just typing python3 on terminal, you will see a pop-up "The python 3 command requires the command line developer tool. Would you like to install it? Click on install, after the installation, check python3 command and you should have it available.

code2care@mac ~ % python3
Python 3.8.2 (default, Nov  4 2020, 21:23:28) 
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.