Skip to content

Instantly share code, notes, and snippets.

View Twinkym's full-sized avatar
🎯
Focusing

david de la puente enriquez Twinkym

🎯
Focusing
View GitHub Profile
@pandorica-opens
pandorica-opens / flowers_csvreader.py
Created October 26, 2020 12:53
Process the flowers data again without turning it into a dictionary.
import os
import csv
# Create a file with data in it
def create_file(filename):
with open(filename, "w") as file:
file.write("name,color,type\n")
file.write("carnation,pink,annual\n")
file.write("daffodil,yellow,perennial\n")
file.write("iris,blue,perennial\n")