Python Help

Need to write the script. It’s very easy and no need for advanced scripting. 7,8,9 need to be solved.