read csv file Copy Julien Delange Python public recipes with open(file_name, mode ='r', encoding='utf-8') as file: # reading the CSV file csvFile = csv.DictReader(file) # displaying the contents of the CSV file for line in csvFile:
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter