The split() method returns a list of all the words in the string, using str as the separator (splits on all whitespace if left unspecified), optionally limiting the number of splits to num.
What does split do in Python 3?
The split() method returns a list of all the words in the string, using str as the separator (splits on all whitespace if left unspecified), optionally limiting the number of splits to num.
What does the split () do?
The split() method divides a String into an ordered list of substrings, puts these substrings into an array, and returns the array.