0

How do I get the content of the file in the output to get h4, the word is hello.

file = open("tabebooks.txt", "r") str=file.readlines() for line in str: print(line) file.close()

6th Jan 2021, 6:17 PM
Astrid
Astrid - avatar
3 Réponses
+ 1
You need the first letter followed by the total number of letters.
6th Jan 2021, 7:05 PM
JaScript
JaScript - avatar
0
Yes
6th Jan 2021, 7:17 PM
Astrid
Astrid - avatar
0
Thank you.
6th Jan 2021, 9:55 PM
JaScript
JaScript - avatar