Skip to content

Commit 75071c1

Browse files
committed
Rephrase to avoid the word "simple" where it may be demotivating
1 parent 7cb646d commit 75071c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

episodes/14-writing-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ result of call is: None
174174
> >
175175
> > ## Solution
176176
> > Each line of Python code is executed in order, regardless of whether that line calls
177-
> > out to a function, which may call out to other functions, or a simple
177+
> > out to a function, which may call out to other functions, or a
178178
> > variable assignment. In this case, the second line call to `print` will not execute until
179179
> > the result of `print_date` is complete in the first line.
180180
> {: .solution}

episodes/18-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ keypoints:
2828

2929
## Use assertions to check for internal errors.
3030

31-
Assertions are a simple, but powerful method for making sure that the context in which your code is executing is as you expect.
31+
Assertions are powerful method for making sure that the context in which your code is executing is as you expect.
3232

3333
~~~
3434
def calc_bulk_density(mass, volume):
@@ -38,7 +38,7 @@ def calc_bulk_density(mass, volume):
3838
~~~
3939
{: .python}
4040

41-
If the assertion is `False`, the Python interpreter raises an `AssertionError` runtime exception. The source code for the expression that failed will be displayed as part of the error message. To ignore assertions in your code run the interpreter with the '-O' (optimize) switch. Assertions should contain only simple checks and never change the state of the program. For example, an assertion should never contain an assignment.
41+
If the assertion is `False`, the Python interpreter raises an `AssertionError` runtime exception. The source code for the expression that failed will be displayed as part of the error message. To ignore assertions in your code run the interpreter with the '-O' (optimize) switch. Assertions should contain only basic checks and never change the state of the program. For example, an assertion should never contain an assignment.
4242

4343
## Use docstrings to provide online help.
4444

0 commit comments

Comments
 (0)