diff --git a/my_csv.py b/my_csv.py index 048a008..0722970 100644 --- a/my_csv.py +++ b/my_csv.py @@ -4,3 +4,7 @@ data = [95,92,94] with open("csv","w",encoding="utf-8") as csvfile: writer=csv.writer(csvfile) writer.writerow(data) + +with open("csv","w",encoding="newline") as csvfile: + writerows=csv.writer(csvfile) + writerows.writerow(data) \ No newline at end of file