1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-07 23:37:32 +02:00

typo in learn x in y minutes python page (#4812)

This commit is contained in:
bkkavin
2023-12-18 21:00:36 +05:30
committed by GitHub
parent c478046e7b
commit e268272771

View File

@@ -669,7 +669,7 @@ def create_avg():
avg = create_avg() avg = create_avg()
avg(3) # => 3.0 avg(3) # => 3.0
avg(5) # (3+5)/2 => 4.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 # There are also anonymous functions
(lambda x: x > 2)(3) # => True (lambda x: x > 2)(3) # => True