Question: how to rewrite this code to import csv file as a python list def main ( ) : phone _ numbers = [ ] with

how to rewrite this code to import csv file as a python list def main():
phone_numbers =[]
with open('phone_numbers.csv','rt') as f:
initial_phone_numbers =[]
"""data = list(reader)"""
for row in f:
row.replace(",","
")
reader = csv.reader(f, delimiter=",")
phone_numbers.append(reader)
print(phone_numbers)

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!