Solved Please Could You Write The Python Code For This

Solved Please Could You Write The Python Code For This