import csv

data = [['Column1', 'Column2'], ['Value1', 'Value2']]

with open('data.csv', 'w', newline='') as file:
    writer = csv.writer(file)
    writer.writerows(data)