Skip to content

Commit 323a90e

Browse files
committed
explain indentation more
1 parent ff00313 commit 323a90e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

if.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ It's raining!
3434

3535
The prompt changed from `>>>` to `...`. It meant that Python was
3636
expecting me to keep typing. When I was done, I just pressed Enter
37-
twice. My code was executed and the prompt went back to `>>>`. IDLE
38-
does this a bit differently, so if you use IDLE, running this example
39-
code looks more like this:
37+
twice. My code was executed and the prompt went back to `>>>`.
38+
39+
An important thing to notice is that the line with a print is
40+
**indented**. You can press the tab key, or if it doesn't work
41+
just press space a few times.
42+
43+
IDLE does this a bit differently, so if you use IDLE, running the
44+
example code looks more like this:
4045

4146
```py
4247
>>> its_raining = True
@@ -55,7 +60,8 @@ just press Ctrl+N.
5560
![New File in IDLE](images/idle-new.png)
5661

5762
If you don't use IDLE, please take the time to
58-
[set up your editor correctly](editor-setup.md).
63+
[set up your editor correctly](editor-setup.md). When you're done your
64+
editor should give you four spaces every time you press tab.
5965

6066
Create a file called `rain.py`, and type the following content into it:
6167

0 commit comments

Comments
 (0)