Skip to content

Commit c7f8f17

Browse files
authored
Merge pull request #455 from kmcnaught/gh-pages
Fix/clarification on python indentation
2 parents 662503f + ebb72f9 commit c7f8f17

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/lesson2/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ around with decision making and changing prints based on your answer. In Python
148148
is using an `if` statement. For example:
149149

150150
>>> number = 4
151-
... if number > 3:
151+
>>> if number > 3:
152152
... print("Bigger than three")
153153
... elif number < 3:
154154
... print("Smaller than three")
@@ -158,9 +158,9 @@ is bigger than three, we will receive a message telling us so. There is a
158158
different message if the number is smaller than three.
159159

160160
Also, now that we are getting more in depth with Python, we should say that
161-
Python is very particular about indentation. With Python, if any lines are not
162-
indented correctly the code will not run. If you are running into bugs, this
163-
is a good place to start.
161+
Python is very particular about indentation (i.e. the spaces at the start of a
162+
line of code). With Python, if any lines are not indented correctly the code
163+
will not run. If you are running into bugs, this is a good place to start.
164164

165165
In this final exercise we are going to ask you the number of coffees you have
166166
drunk today and then change the statement returned to you, depending on your

0 commit comments

Comments
 (0)