Furthermore, functions like range, int, abs all return values that
can be used to build more complex expressions.
-
So an important difference between these functions and one like drawSquare is that
+
So an important difference between these functions and one like drawSquare is that
drawSquare was not executed because we wanted it to compute a value — on the contrary,
we wrote drawSquare because we wanted it to execute a sequence of steps that caused
the turtle to draw a specific shape.
diff --git a/pretext/Functions/Variablesandparametersarelocal.ptx b/pretext/Functions/Variablesandparametersarelocal.ptx
index 198949b9..83a20885 100644
--- a/pretext/Functions/Variablesandparametersarelocal.ptx
+++ b/pretext/Functions/Variablesandparametersarelocal.ptx
@@ -40,7 +40,7 @@ result = badsquare(10)
print(result)
-
Although the badsquare function works, it is silly and poorly written. We have done it here to illustrate
+
Although the badsquare function works, it is silly and poorly written. We have done it here to illustrate
an important rule about how variables are looked up in Python.
First, Python looks at the variables that are defined as local variables in
the function. We call this the local scope. If the variable name is not
diff --git a/pretext/GUIandEventDrivenProgramming/05_widget_grouping.ptx b/pretext/GUIandEventDrivenProgramming/05_widget_grouping.ptx
index a03b22b8..22171ff3 100644
--- a/pretext/GUIandEventDrivenProgramming/05_widget_grouping.ptx
+++ b/pretext/GUIandEventDrivenProgramming/05_widget_grouping.ptx
@@ -56,7 +56,7 @@
and location using a layout manager. The image below shows examples of the
four types of widget containers. The containers in this example used a
grid layout manager on a 2x2 grid.