Skip to content

Commit

Permalink
Split up description on how to open the Python console
Browse files Browse the repository at this point in the history
  • Loading branch information
foonicorn committed Jul 13, 2014
1 parent e7f646c commit 87207f7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions python_introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,34 @@ Let's write some code!

## Python prompt

To start tinkering with Python, we need to open up a *prompt* on your computer. On Mac OS X you can do this by launching the `Terminal` application (it's in Applications → Utilities). On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt. On Linux, it's probably under Applications → Accessories → Terminal.
To start tinkering with Python, we need to open up a *prompt* on your computer. How you get there depends on the operating system but once it's open, everything is equal.

### Windows

On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt.

A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python3` and hit Enter.

(workshops) ~$ python3
C:\Users\Name> C:\Python34\python
Python 3.4.1 (...)
Type "copyright", "credits" or "license" for more information.
>>>

After running the python command, the prompt changed to `>>>`. For us it means that for now we may only use commands in the Python language. You don't have to type in `>>>` - Python will do that for you.
### Linux and OX X

On Mac OS X you can do this by launching the `Terminal` application (it's in Applications → Utilities). On Linux, it's probably under Applications → Accessories → Terminal.

A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python3` and hit Enter.

$ python3
Python 3.4.1 (...)
Type "copyright", "credits" or "license" for more information.
>>>

## Your first Python command!

After running the Python command, the prompt changed to `>>>`. For us it means that for now we may only use commands in the Python language. You don't have to type in `>>>` - Python will do that for you.

Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.

>>> 2 + 3
Expand Down

0 comments on commit 87207f7

Please sign in to comment.