python type constraint

Solutions on MaxInterview for python type constraint by the best coders in the world

showing results for - "python type constraint"
Lia
30 Nov 2019
1# Example of typing constraint in python (From 3.5)
2def greeting(name: str) -> str:
3    return 'Hello ' + name