because when you read from file, each line will have new-line at the end.
when you convert to int, this new-line is striped. but it's not stripped from the strings.
so you end-up with 2 new lines.
when you convert to int, this new-line is striped. but it's not stripped from the strings.
so you end-up with 2 new lines.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs