Solved Please Write A Python Code For The Giving Problem

Solved Please Write A Python Code For The Giving Problem