Fundamentals24 / 30
Up next

Type hints

# hints document intent; they are not enforced at runtime
def greet(name: str) -> str:
    return f"hello, {name}"


print(greet("world"))
What you're solving

annotate params and return type