Иѓ”зі»дєє.csv Apr 2026

# Writing to a CSV file with open('example.csv', mode='w', newline='') as file: writer = csv.writer(file) writer.writerow(["Name", "Age", "Country"]) writer.writerow(["John Doe", 30, "USA"])

# Reading from a CSV file with open('example.csv', 'r') as file: reader = csv.reader(file) for row in reader: print(row) This example shows how to write to and read from a CSV file using Python's built-in csv module. иЃ”зі»дєє.csv