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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started