From dfaeaa97317baf5c8880a466d2b71a6f38da59a6 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 26 Oct 2018 19:33:35 -0700 Subject: [PATCH] added a nice link to the functions page. and a typi fix --- source/exercises/string_formatting.rst | 2 +- source/modules/Functions.rst | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/exercises/string_formatting.rst b/source/exercises/string_formatting.rst index 6e0c45b1..d480f3dd 100644 --- a/source/exercises/string_formatting.rst +++ b/source/exercises/string_formatting.rst @@ -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 diff --git a/source/modules/Functions.rst b/source/modules/Functions.rst index 27b73c0c..c2503909 100644 --- a/source/modules/Functions.rst +++ b/source/modules/Functions.rst @@ -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/