in a text file?
like if a text has multiple newlines and I want to read the number of lines, how can I achieve that?
You can use .readline() func and count using loop
Wc -l file
Can you use google?
Обсуждают сегодня