0

What is the purpose of .read() .strip() .split()

5th Jul 2018, 8:36 AM
abinaya
abinaya - avatar
4 odpowiedzi
+ 3
read() reads bytes from a file object strip() removes white spaces from the end and beginning equal to trim() method in some languages split() returns a list of words splitted by the given parameter.
5th Jul 2018, 8:42 AM
Toni Isotalo
Toni Isotalo - avatar
+ 2
If you make know we which language you are talking about ...
5th Jul 2018, 8:43 AM
KrOW
KrOW - avatar
+ 1
https://docs.python.org/2/library/string.html .read() isnt a string method
5th Jul 2018, 8:51 AM
KrOW
KrOW - avatar
5th Jul 2018, 8:47 AM
abinaya
abinaya - avatar