0

39 code project (Python)

Hi, I’ve already written the code and it works but the test says me it’s wrong. Can someone help me??

17th Jun 2022, 7:10 AM
Denys Carbini
7 Respostas
+ 2
Your code?
17th Jun 2022, 7:25 AM
JOKER
JOKER - avatar
+ 2
file = open("/usercode/files/books.txt", "r") for line in file.readlines(): g=line.split(" ") e="" for o in g: e+=o[0] print(e) file.close()
17th Jun 2022, 7:32 AM
JOKER
JOKER - avatar
+ 2
Your code is missing two inputs. https://code.sololearn.com/cZrx4H2mo27S/?ref=app
17th Jun 2022, 7:45 AM
JOKER
JOKER - avatar
+ 1
https://code.sololearn.com/cNEHV3jR2m5F/?ref=app
17th Jun 2022, 7:27 AM
Denys Carbini
+ 1
file = open("/usercode/files/books.txt", "r") for line in file: words = line.split() i = "" for word in words: i += word[0] print(i) file.close()
22nd Dec 2022, 5:47 AM
Juan David Ortiz Guevara
Juan David Ortiz Guevara - avatar
0
It’s working, thank you so much. But, why my code doesn’t work?
17th Jun 2022, 7:38 AM
Denys Carbini
0
Perfect, thank you so much.
17th Jun 2022, 7:47 AM
Denys Carbini