LogiQuest
Back to Functions
22

What is the output of the following code?

def greet(name: str) -> str:
    return 'Hi ' + name
print(greet.__annotations__['return'].__name__)
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.