To convert the data from a text file into an excel sheet.
To set up and run the script, follow the instructions below:
-
Install the required dependencies:
openpyxl
(Install usingpip install openpyxl
)
-
Run the script:
- Execute the script using a Python interpreter.
The script performs the following steps:
- Imports the necessary libraries (
openpyxl
). - Make a text file named 'input.txt'.
- Save the text in the file, text separated by spaces which you want in different cells.
- Execute the script, you will see the output.xlsx file generated by the script.
The script saves the generated excel sheet as "output.xlsx" in the current directory which contains the data.
Author: Tisha Garg