From 174ce08c731b4254a42f3ab5bea854c10c2f5caa Mon Sep 17 00:00:00 2001 From: Isidro Arias Date: Sat, 8 Apr 2023 17:01:16 +0200 Subject: [PATCH] syntax error in dict comprehension --- data_structures/hashing/bloom_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/hashing/bloom_filter.py b/data_structures/hashing/bloom_filter.py index 7ec5a4f35..a92c5d86b 100644 --- a/data_structures/hashing/bloom_filter.py +++ b/data_structures/hashing/bloom_filter.py @@ -30,8 +30,8 @@ because both hash functions return the same value Not added elements should return False ... >>> not_present_films = ("The Goodfather", "Interstellar", "Parasite", "Pulp Fiction") ->>> {film: bloom.format_hash(film) for film in not_present_films)} -{'The Goodfather': '00011000', 'Interstellar': '00000011', 'Parasite': '00010010': 'Pulp Fiction': '10000100'} +>>> {film: bloom.format_hash(film) for film in not_present_films} +{'The Goodfather': '00011000', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'} >>> any(film in bloom for film in not_present_films) False