Question: I need to come up with a code based off of this email using python 3. They provided starter code below. Thank you Hello Sir,

I need to come up with a code based off of this "email" using python 3. They provided starter code below.

Thank you

Hello Sir,

We are emailing you to ask for your assistance in a task regarding our customer data files. We would like to you to file a list of our customers' names. email addresses, and what type of credit card they use. We are interested in offering various offers and rewards for our customers, depending on what credit card they use. I would like to use this data to make the task of advertising these offers to our customers much easier.

import csv import re data = []

with open('customerData.csv') as csvfile: reader = csv.DictReader(csvfile) for row in reader: data.append(row) print(data[0]) print(data[1]["Name"]) print(data[2]["Spent Past 30 Days"])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!