Book tiltles python project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Book tiltles python project

You are provided a books.txt file, which includes the book titles, each one written on a separate line. Read the title one by one and output the code for each book on a separate line. I am supposed to output A12 S9 I have not done strip yet on python

14th Jun 2022, 8:45 AM
Mbalenhle Shamima Nhlapo
Mbalenhle Shamima Nhlapo - avatar
3 Answers
+ 5
Please link your attempt from Sololearn Plaground with a question what help will be needed.
14th Jun 2022, 9:05 AM
JaScript
JaScript - avatar
+ 4
Mbalenhle Shamima Nhlapo This question has been asked many times recently. Maybe a Q&A search could resolve this for you
14th Jun 2022, 9:18 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
file = open("/usercode/files/books.txt", "r") #your code goes here file.close()
14th Jun 2022, 9:29 AM
Mbalenhle Shamima Nhlapo
Mbalenhle Shamima Nhlapo - avatar