1
0
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:
bkkavin 2023-12-18 21:00:36 +05:30 committed by GitHub
parent c478046e7b
commit e268272771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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