+ 1
Reading files
file = open("books.txt", "r") file.write("Harry Potter\n," "Parvana\n") for i in file.readlines(): print (i) file.close()
2 Answers
+ 2
You canât write using read mode.
0
How do i use the text to read from a file and print the number of strings and first letter of the book title..