Solved Slove Using Python 3 Please Write A Function

Solved Slove Using Python 3 Please Write A Function