mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
removed Interestellar
This commit is contained in:
parent
00cc60e23a
commit
35fa5f5c4b
|
@ -29,9 +29,9 @@ because both hash functions return the same value
|
|||
'01100100'
|
||||
|
||||
Not added elements should return False ...
|
||||
>>> not_present_films = ("The Godfather", "Interstellar", "Parasite", "Pulp Fiction")
|
||||
>>> not_present_films = ("The Godfather", "Parasite", "Pulp Fiction")
|
||||
>>> {film: bloom.format_hash(film) for film in not_present_films}
|
||||
{'The Godfather': '00000101', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'}
|
||||
{'The Godfather': '00000101', 'Parasite': '00010010', 'Pulp Fiction': '10000100'}
|
||||
>>> any(film in bloom for film in not_present_films)
|
||||
False
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user