.close() {Ans: closes the file and frees up any system resources that use them}.write(string_value) {Ans: Writes the contents of string_value to a file, returning the number of characters written. When writing to text files, we need to convert other data-type values to a string prior to writing them to the file}slicing {Ans: end index - 1}.append(value) {Ans: adds a value to the end of a list}"t" {Ans: Opens the file in text mode. This will be the mode if not specified. This mode returns str data-type objects}.sort(key=None, reverse=False) {Ans: Sorts the items of the list in place. The arguments can be used for sort customization}