![]() |
VOOZH | about |
The major difference between strip and split method is that strip method removes specified characters from both ends of a string. By default it removes whitespace and returns a single modified string. Whereas, split method divides a string into parts based on a specified delimiter and by default it splits by whitespace and returns a list of strings.
hello world hello
Explanation:
['hello', 'world'] ['apple', 'orange', 'banana']
Explanation: