Q. Write a Python program to read a given CSV file having tab delimiter.

 

Answer = 

 

import csv
file = open( "Pathwalla.csv","r" )
data = csv.reader(file, delimiter = "\t")
for i in data :
      print(i)

file.close()


4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post