
There are a couple of ways to exit Python.
#ATOM PYTHON FOR MAC CODE#
Our code works! Let's close Python by typing in > exit() Python will then print out Hi Michelle, how are you doing? Let's see what itĭoes! Type in the following: > greet('Michelle') Recall that we defined a function called greet. Notice that the Python interpreter says >. greet.py is the name of the Python file we want to load.The -i flag tells Python to start in interactive mode, whichĪllows you to type in Python commands from your terminal.


Now we have Atom open, we can begin writing our first Python file. Highlight theĮxample folder you just made and open it.

The UNIX commands you learned in Lab 0: mkdir ~/exampleįor Mac users, you'll most likely find Atom in your Applications.įor Ubuntu users, you'll most likely find Atom by putting it in the search bar.įor Windows users, you'll most likely find Atom in yourĬlick on "File > Add Project Folder." in the menu bar. Let's first create and navigate to a directory called example, using Recall from Lab 0 that you can open a terminal on the school Of either finding the Application or opening it up from the terminal. Visit Atom's website and follow the instructions to installīy now, you should have Atom installed. It's a lightweight text editor that's free to use. Atom is an open source text editor developed by
