Hacer un archivo txt y luego escribir

#open text file
text_file = open("C:/Users/rowgi/Jupyter/Sentimental/Better/pwords.txt", "w")
 
#write string to file
text_file.write(pwords)
 
#close file
text_file.close()
Clean Curlew