This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3.6 | |
# -*- coding: utf-8 -*- | |
from hypothesis import given, example | |
import hypothesis.strategies as st | |
def linear_search(key, l): | |
"""Given a search key and a list of tuples (key, value), return | |
the first item that matches the key, or None if none match. | |
Example: |