splitSplits a string by a separator and returns a list.split(separator, str)CopyParameters#separator: Separator used to split given strstr: Target string to splitReturns#List of strings after splittingExample#split(' ', 'Some dogs are funny')# returns: ['Some', 'dogs', 'are', 'funny']Copy