To specify a different delimiter while writing into a csv file, delimiter argument is used with csv.writer().