How to Install Python on Mac OS and How to Run Python code

How to Install Python on Mac OS and How to Run Python code

512,080 View

How to install Python on Mac OS and How to write and execute or run your first Python program on Mac OS will be covered in this video.
We start by installing Python 3 and then go through 3 ways to write and execute Python program on Mac.
3 ways to write and execute Python program covered in this video are:
1. Using IDLE, which is an IDE that comes along with Python installation.
2. Using any text editor (in my case I use Atom) to write python program and then execute the program using Terminal window.
3. By using Visual Studio Code (or simple VS Code), which is considered as one of the best IDE for Python.

Installing Python 3 on Mac can be confusing due to the existence of Python 2 which is preinstalled on all Mac OS. However, Python 2 and Python 3 can co-exist on the same machine hence we do not need to uninstall Python 2 before installing Python 3.

To Install Python 3, there are no prerequisites, and the installation is pretty straight forward.
To run your Python code may be confusing for beginners hence in this video we cover 3 different ways or 3 different editors which can be used to get started with writing and running python code.

When executing python code through IDLE, it’s essential to execute the RUN command from the text editor and then view the output in IDLE interpreter.
Whereas text editor does not have the functionality to run program by itself hence we use Terminal window to run the program.
Visual Studio Code (or simple VS Code) along with PyCharm, Jupiter Notebook and few others are considered as one of the best IDE for Python hence in this video we show how VS Code can be used to write and Run Python program.

The video is aimed at helping beginners to get started with installation of Python programming language on Mac and by showing multiple ways to start writing and executing Python code.

Reference Links:
Python Download:
https://www.python.org/downloads/

Visual Studio Code Download:
https://code.visualstudio.com/download

Atom Download:
https://atom.io/


Please like, subscribe and click on the notification bell to be notified of my latest video’s.

πŸ”΄ WATCH MORE VIDEOS HERE πŸ‘‡

βœ… SQL Tutorial - Basic concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9HQQ_COgGb7kf_1H8UWUBxO

βœ… SQL Tutorial - Intermediate concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9FD9XspliRM_HZM_jK7tkii

βœ… SQL Tutorial - Advance concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9GbmgiW4TWVnxhjMFOIf0Q7

βœ… Practice Solving Basic SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9F66P3GFo5O6nJ4DfZNhVsp

βœ… Practice Solving Intermediate SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9EIYmNXJ8ZtQ1bmLIpt0SpV

βœ… Practice Solving Complex SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9Fahr7taauUx5RnTfuGyL--

βœ… Data Analytics Career guidance:
https://www.youtube.com/playlist?list=PLavw5C92dz9FDsr995DjwCy9XNaIukb8P

βœ… SQL Course, SQL Training Platform Recommendations:
https://www.youtube.com/playlist?list=PLavw5C92dz9GqF1Q_zn8KnYvFgtEOh-2n

βœ… Python Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9FePZXIo4jpsupqp3X0w2SW

βœ… Git and GitHub Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9EI1MPlqqDpe3bgr8RJZE0b

βœ… Data Analytics Projects:
https://www.youtube.com/playlist?list=PLavw5C92dz9HwT_uStsDdJbuBOt_XD0ch

THANK YOU,
Thoufiq


Did you miss our previous article...
https://learningvideos.club/computer-technology/how-to-start-affiliate-marketing-for-beginners-5000week-strategy