@@ -105,7 +105,7 @@ function that returns a value:
105
105
... return "My name is " + name
106
106
107
107
Now the function returns a value that we can work with. We could store this in
108
- a value to be used later. Let's try storing it as a value, and using that value
108
+ a variable to be used later. Let's try storing it as a value, and using that value
109
109
as a parameter in another ` print() ` function call.
110
110
111
111
>>> statement = get_statement("Lisa")
@@ -118,7 +118,7 @@ script, simply calling the function without a print statement would not print
118
118
anything to the screen. This is because the function is returning a value, and
119
119
no longer printing a string.
120
120
121
- A subtle indicator of this is the quote marks around the sentence that denotes
121
+ A subtle indicator of this are the quote marks around the sentence that denotes
122
122
a string is being output to the screen, rather than something being printed
123
123
with the print function:
124
124
@@ -128,7 +128,7 @@ with the print function:
128
128
129
129
## Why use functions
130
130
131
- At first glance it may not seem obvious why it is worth expending the extra
131
+ At first glance it may not seem obvious why it's worth expending the extra
132
132
effort of defining and calling a function, rather than just writing the code
133
133
independent of such things. Defining tasks as functions reduces the need to
134
134
copy and paste the same code multiple times to achieve the same effect. Simply
0 commit comments