mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-29 11:20:21 +01:00
typo in learn x in y minutes python page (#4812)
This commit is contained in:
parent
c478046e7b
commit
e268272771
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user