Solved I Need Help Solving This Problem By Writing A Python3

Solved I Need Help Solving This Problem By Writing A Python3