From f9bcef96039d09034e19cf817af29f62420bb0a9 Mon Sep 17 00:00:00 2001 From: gahjelle Date: Mon, 12 Aug 2024 16:39:00 +0200 Subject: [PATCH] Fix formatting --- python-walrus-operator/slow_calculations.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python-walrus-operator/slow_calculations.py b/python-walrus-operator/slow_calculations.py index 21abf56b2d..bac3bc70e3 100644 --- a/python-walrus-operator/slow_calculations.py +++ b/python-walrus-operator/slow_calculations.py @@ -19,9 +19,7 @@ def slow(number): print(results) print("\nfilter()") -results = list( - filter(lambda value: value > 0, (slow(num) for num in numbers)) -) +results = list(filter(lambda value: value > 0, (slow(num) for num in numbers))) print(results) print("\nDouble List Comprehension")