summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbkkavin <70782359+bkkavin@users.noreply.github.com>2023-12-18 21:00:36 +0530
committerGitHub <noreply@github.com>2023-12-18 16:30:36 +0100
commite268272771f19189c758280b5b27aad39c94fef1 (patch)
tree66f31bbc33416cd832baeae7afefdc334c050a36
parentc478046e7b440208769cdd0932c5f345d54425d9 (diff)
typo in learn x in y minutes python page (#4812)
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 967c2bd7..d863bcc3 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -669,7 +669,7 @@ def create_avg():
avg = create_avg()
avg(3) # => 3.0
avg(5) # (3+5)/2 => 4.0
-avg(7) # (8+7)/2 => 5.0
+avg(7) # (8+7)/3 => 5.0
# There are also anonymous functions
(lambda x: x > 2)(3) # => True