["python","csv","merge","concatenation"]
How can I merge 200 CSV files in Python?

I here have 200 separate CSV files named from SH (1) to SH (200). I want to merge them into a single CSV file. How can I do it?
As ghostdog74 said, but this time with headers: with open("out.csv", "ab") as fout: # First file: with open("sh1.csv", "rb") as f: fout.writelines(f) # Now the rest: for num in range(2, 201): with open("sh" + str(num) + ".csv", "rb") as f: next(f) # Skip the header, portably fout.writelines(f)