It would be cool if you could pass in a limit. Like by default we will give you the top ten results. We could also cap the limit to 100.
limit=10if"limit"ininput:
try:
input_limit=int(input["limit"])
limit=max(1, min(input_limit, 100))
exceptValueError:
throwError("Invalid limit provided. Please have a range from 1-100")