Skip to content

Commit

Permalink
added a nice link to the functions page. and a typi fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonCHB committed Oct 27, 2018
1 parent 644e87b commit dfaeaa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/exercises/string_formatting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ It will look like:
def formatter(in_tuple):
do_something_here_to_make_a_format_string
return form_string.format(in_tuple)
return form_string.format(*in_tuple)
Task Four
Expand Down
6 changes: 6 additions & 0 deletions source/modules/Functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ B) If not, then it does a computation using the same function with another value

It is critical that the first check is there, or the function will never terminate.

Further Reading
---------------

Here's a nice blog post about writting better functions:

https://jeffknupp.com/blog/2018/10/11/write-better-python-functions/



Expand Down

0 comments on commit dfaeaa9

Please sign in to comment.