how to define a variable type in python code example Example: type declaration python def greeting(name: str) -> str: return 'Hello ' + name