QP School

Full Version: Type Annotations in Python 3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
def add_numbers(a: int, b: int) -> int:
    return a + b

result = add_numbers(5, 10)
print(result)  # Output: 15