Skip to content

Instantly share code, notes, and snippets.

@pschanely
Created December 12, 2025 06:58
Show Gist options
  • Select an option

  • Save pschanely/0a94fca685b30c335963725bcac02e73 to your computer and use it in GitHub Desktop.

Select an option

Save pschanely/0a94fca685b30c335963725bcac02e73 to your computer and use it in GitHub Desktop.
Shared via CrossHair Playground
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