Created
March 19, 2026 12:42
-
-
Save pschanely/fccc4da1933a76e98336a16a0e6b98ac to your computer and use it in GitHub Desktop.
Shared via CrossHair Playground
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
| from typing import List | |
| def average(numbers: List[float]) -> float: | |
| ''' | |
| pre: len(numbers) >= 0 | |
| post: min(numbers) <= __return__ <= max(numbers) | |
| ''' | |
| return sum(numbers) / len(numbers +3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment