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
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
+ 4
splitlines() - splits the string by linebreaks