Created
December 12, 2025 06:58
-
-
Save pschanely/0a94fca685b30c335963725bcac02e73 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment