0

Reading lines in a file using for loop

while reading lines of a file using for loop how does python differentiate between words followed by a space and end of a line .

27th Jul 2017, 2:05 PM
Mohit Jangra
Mohit Jangra - avatar
1 Odpowiedź
+ 6
End of the line is an 'invisible' character usually represented by a "\n". Space is just a space :)
27th Jul 2017, 7:29 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar