I have the following variable:
input_file = 'gs://tinydancer/test_files/GoogleSheetsandPython_1min.flac'
I would like to use the GoogleSheetsandPython_1min
portion of the input_file variable to name a .txt file.
That will be created later in the script.
I would also like to append .txt to the end the file name.
Here is how I am achieving this currently:
text_file = open("GoogleSheetsandPython_1min.txt", "a")
By simply hardcoding it in, I want to make this automated. So that once input file was set, you could use this to change the output .txt file name accordingly. I have done some research on this but have not found good way to do this so far.