Skip to content

Instantly share code, notes, and snippets.

View kunal26das's full-sized avatar
🏠
Working from home

Kunal Das kunal26das

🏠
Working from home
View GitHub Profile
@kunal26das
kunal26das / comma-separator.py
Created August 2, 2023 01:49
comma separator
lines = open("lines.txt", "r")
string = ""
for line in lines:
string += line.strip()
string += ","
print(string)
lines.close()
result = open("string.txt", "r+")
result.seek(0)
result.truncate()