Saturday, 3 July 2021

*Episode 2* PYTHON (How to Install Python on mac OS)


Installing Python on Mac OS


This episode covers :-


  1.) How to install Python on macOS

  2.) How to use the interactive interpreter to test it.


  •  Downloading and installing Python:-

       Visit https://samuli.to/Python-Download and download the latest mac OS version:




        Run the installer.



        Press Ctrl plus Space and search for terminal:



  •  Using the interactive prompt:-

      Type python3 in the terminal and press return. The interpreter is now in
interactive mode, waiting for your commands:



     Let’s add two variables together and print out the result with print() function:


     Exit the session with Ctrl-D.


Python interpreter

      Interpreter is a software layer between your program and the computer. It reads your code and carries out the instructions it contains.

      You can type and run Python code directly in the interactive prompt. This allows us to interact with Django projects using the command line.


Summary

  •  Python can easily be installed on macOS using the official installer.
  •  Interpreter is a software layer between your code and the computer.
  • You can use the interactive prompt to type and run Python code.

👈Episode 1(P).                                                                           Episode 3(P)👉
Share This Post
PRINT THIS POST

No comments:

Post a Comment

If you have any doubts. Please let me know.

Featured post

*Episode 1* MCQ for Govt. Job/ Private Job/ MNCs

  Topic:- One Word Substitution 1) Especially skilled in storytelling  Answer:- Raconteur 2) Fear of loneliness Answer:- Eremophobia  3) Usa...