Chapter 7 [Coding] Can you provide the solutions to (A) using Python or R?