Solved Python Please Explain All The Code And Follow

Solved Python Please Explain All The Code And Follow