You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python_installation/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You can download Python for Windows from the website https://www.python.org/down
20
20
21
21
It is very likely that you already have Python installed out of the box. To check if you have it installed (and which version it is), you type in a console:
22
22
23
-
$ python --version
23
+
$ python3 --version
24
24
Python 3.4.1
25
25
26
26
If you don't have Python installed or you want a different version, you can install it as follows.
Copy file name to clipboardExpand all lines: python_introduction/README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,34 @@ Let's write some code!
6
6
7
7
## Python prompt
8
8
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
10
11
-
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 `python` and hit Enter.
11
+
### Windows
12
12
13
-
(workshops) ~$ python
13
+
On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt.
14
+
15
+
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.
16
+
17
+
C:\Users\Name> C:\Python34\python
14
18
Python 3.4.1 (...)
15
19
Type "copyright", "credits" or "license" for more information.
16
20
>>>
17
21
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
+
>>>
19
32
20
33
## Your first Python command!
21
34
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
+
22
37
Let's start with something really simple. For example, try typing some math, like `2 + 3` and hit Enter.
0 commit comments