0

Why second print statement's result is not printing?

https://code.sololearn.com/cnttM32uXLZj/?ref=app Why second print statement's result is not printing and someone please explain splitlines () function purpose

17th Feb 2019, 8:33 AM
Raj Charan
2 ответов
+ 8
file.read() leaves the read cursor at the end of the file. Use "file.seek(0)" after reading to return the read cursor to the start of the file
17th Feb 2019, 10:50 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 4
splitlines() - splits the string by linebreaks
17th Feb 2019, 8:53 AM
Maneren
Maneren - avatar