Pergunta de entrevista da empresa Redleaf Technologies

Python Question how to construct a function?