Theme
Primary Color
Lesson 94

Type Hinting

ال Code الموجود في الدرس

# ------------------
# -- Type Hinting --
# ------------------

def say_hello(name) -> str:

  print(f"Hello {name}")

say_hello("Ahmed")

def calculate(n1, n2) -> str:

  print(n1 + n2)

calculate(10, 40)