1string = '1-2-3
2array_of_words = string.split('-')
3print(array_of_words) # prints ['1', '2', '3']
4##################################################
5#if you dont pass anything in the split() function,
6#the default parameter will be a space
7##################################################
8string = '1 2 3'
9array_of_words = string.split()
10print(array_of_words) # prints ['1', '2', '3']