Sitemap

Get Started with Python

3 min readNov 10, 2025

--

For Linux/Mac

Python Installation

By default MAC has the python

Donwload python 3 from https://www.python.org/downloads/

To associate the python command with python3, modify the bash_profile confgurations.

nano .bash_profile
Press enter or click to view image in full size

As part of version 3, bash_profile is modified. Create an alias at the bottom of the file. Don’t leave any space before and after the =.

Press enter or click to view image in full size

After the bash_profile update, close the terminal and reopen to verify the ‘python — version’ command.

Press enter or click to view image in full size

Interactive Prompt

Type just python, you ‘ll get interactive python. The three arrows tells you that you are in interactive prompt. This allows me to type only one line. That’s the downside of it.

Press enter or click to view image in full size

You can print and store a value to a variable, etc.,

Press enter or click to view image in full size

Interactive Prompt can be closed using () open and close parenthesis.

Press enter or click to view image in full size

Python Editor — IDLE

The below screenshot is what you’ve downloaded from python.org and installed on your system. IDLE is the python editor.

Press enter or click to view image in full size

Create ‘Hello World’ python program

  1. Create a file by clicking File -> New file
  2. Add print line
  3. Save it by clicking File -> Save -> <file_name>.py
Press enter or click to view image in full size
Press enter or click to view image in full size

IDLE is not suitable to do a lot of python programs. So go for the other popular editors.

Other popular Text Editors

  1. Sublime Text
  2. Atom
  3. JetBrain’s pyCharm (fullblown IDE) *

The first two has a lot of built-in functionality. PyCharm has the ability to debug and run applications

Keys for nano

Ctrl + O — Save

Get Developer Notes’s stories in your inbox

Join Medium for free to get updates from this writer.

Ctrl + x — exit

For Windows

Select the option ‘Add Python to Path’ by ticking the checkbox and the rest is same like Linux or mac

--

--

Developer Notes
Developer Notes

Written by Developer Notes

There is nothing either good or bad but thinking makes it so..... Shakespeare