Php Function With Input And Output In Python