QP School
QP School
>
Tutorials
>
Python 3 Tutorials and examples
> Type Annotations in Python 3
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.
Qomplainerz
07-25-2023, 10:38 AM
def add_numbers(a: int, b: int) -> int:
return a + b
result = add_numbers(5, 10)
print(result) # Output: 15
QP School
>
Tutorials
>
Python 3 Tutorials and examples
> Type Annotations in Python 3