python specify type of variable code example Example: type declaration python def greeting(name: str) -> str: return 'Hello ' + name