modify the Python code

I want someone to modify the Python code in order to get the output that I uploaded, also there is an instruction file so that youcan know what o work on