write a program to create a CSV file to store employee data such as EmpId,Empname and salary. obtain data from user and write to the file. also suppress the EOL translation
Answers
Explanation:
CSV (stands for comma separated values) format is a commonly used data format used by spreadsheets and databases. The csv module in Python’s standard library presents classes and methods to perform read/write file operations in CSV format .
writer():
This function in csv module returns a writer object that converts data into a delimited string and stores in a file object. The function needs a file object created with open() function and with write permission as a parameter. Every row written in the file issues a newline character by default. To prevent additional line between rows, newline parameter is set to ''.
The writer() function by default uses 'excel' dialect. Alternate dialect parameter can be specified if required. The function also allows additional formatting parameters to be specified.
Please mark me as a Brainlist
Answer:
CSV stand for (comma separated values)
Explanation:
hope it is helpful for you