An urgent question concerning the topicReading from and Writing to Files using Python

WhatsApp Image 2022-04-18 at 4.00.47 PM Can someone kindly help me with this problem…How can I parse the values of the list as per the image I have uploaded