Solved Please Provide The Python Code According To Below

Solved Please Provide The Python Code According To Below