Solved Please Solve Using Python Code Only I Have Posted

Solved Please Solve Using Python Code Only I Have Posted