python set return type

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

showing results for - "python set return type"
Giovanni
04 May 2016
1# This example illustrates both parameter and return type annotation
2# Collection annotations are also supported
3from typing import List
4
5def greeting(names: List[str]) -> str:
6    return 'Hello, ' + names[0] ' and ' + names[1]