import csv table_data = [["Zane",7], ["Bob",10], ["Jim",37], ["Stacey",21] ] # Write to a CSV file with open("simple_table_output.csv", "w", newline="") as f: writer = csv.writer(f) writer.writerows(table_data) print("CSV file saved in the same folder as this script.")