how to specify return type of function in python code example
Example: specify return type python function
def greeting(name: str) -> str:
return 'Hello, {}'.format(name)
def greeting(name: str) -> str:
return 'Hello, {}'.format(name)