Skip to content

Commit a552877

Browse files
committed
Last formatting niggles.
1 parent 2edd099 commit a552877

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ IndentationError: unindent does not match any outer indentation level
133133
### Calling Functions
134134

135135
Functions are [_called_][calls] or invoked using their name followed by `()`.
136-
The number of arguments passed in the parentheses must match the number of parameters in the original function definition..
136+
The number of arguments passed in the parentheses must match the number of parameters in the original function definition.
137137

138138
```python
139139
>>> def number_to_the_power_of(number_one, number_two):
@@ -157,7 +157,7 @@ TypeError: number_to_the_power_of() missing 1 required positional argument: 'num
157157
```
158158

159159

160-
Calling functions defined inside a class (_class methods_) use `<class name>.<method name>(<parameters>)`, otherwise known as dot (.) notation:
160+
Calling functions defined inside a class (_methods_) use `<class name>.<method name>(<parameters>)`, otherwise known as dot (.) notation:
161161

162162
```python
163163
# This is an example of a method call of the built in str class.
@@ -219,15 +219,16 @@ def complex(real=0.0, imag=0.0):
219219

220220
if imag == 0.0 and real == 0.0:
221221
return complex_zero
222-
...
223222

224223
```
225224

226225

227226
Docstrings are read by automated documentation tools and are returned by calling the special attribute `.__doc__` on the function, method, or class name.
228-
Docstrings can also function as [lightweight unit tests][doctests], which will be covered in a later exercise.
229227
They are recommended for programs of any size where documentation is needed, and their conventions are laid out in [PEP257][pep257].
230228

229+
Docstrings can also function as [lightweight unit tests][doctests], which will be covered in a later exercise.
230+
231+
231232
```python
232233
# An example on a user-defined function.
233234
>>> def number_to_the_power_of(number_one, number_two):
@@ -253,6 +254,8 @@ Raise a number to an arbitrary power.
253254

254255
Takes number_one and raises it to the power of number_two, returning the result.
255256

257+
258+
256259
# Printing the __doc__ attribute for the built-in type: str.
257260
>>> print(str.__doc__)
258261
str(object='') -> str

0 commit comments

Comments
 (0)