Sharat is an automation engineer at ABC Labs. He is currently writing a program to parse CSV files that contain customer information.
Given the CSV headers and the CSV data, help Sharat write a program that gets customer information from a line and prints it to a format given below with the headers.
- The records are present in
data
. Each line in data is separated by \n
.
- Use the
.split()
method to split the string into different lines and use .split()
again to split every attribute of the customer.
- Iterate through the headers and each customer attribute to print the information.