Saving a Document as a Text File
Create a functionsave_document()that accepts the argumentsfilenameandtextand saves the text into the file filename. The filename should use the name of the document with ‘_edited_document’ appended to it.
For example, for the documenttext.doc, the save document should have the nametext_edited_document.txt. The file should be saved in the folder “edits.” Assume that the folder already exists in the present working directory.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here