Skip to content

Commit 87207f7

Browse files
committed
Split up description on how to open the Python console
1 parent e7f646c commit 87207f7

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

python_introduction/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,34 @@ Let's write some code!
66

77
## Python prompt
88

9-
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.
9+
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.
10+
11+
### Windows
12+
13+
On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt.
1014

1115
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.
1216

13-
(workshops) ~$ python3
17+
C:\Users\Name> C:\Python34\python
1418
Python 3.4.1 (...)
1519
Type "copyright", "credits" or "license" for more information.
1620
>>>
1721

18-
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.
22+
### Linux and OX X
23+
24+
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.
25+
26+
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.
27+
28+
$ python3
29+
Python 3.4.1 (...)
30+
Type "copyright", "credits" or "license" for more information.
31+
>>>
1932

2033
## Your first Python command!
2134

35+
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.
36+
2237
Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.
2338

2439
>>> 2 + 3

0 commit comments

Comments
 (0)