My String is:
wish = "Happy New Year"
Output:
word_list = ['Happy','New','Year']
>>> wish = "Happy New Year"
>>> wordlist = wish.split()
>>> wordlist
['Happy', 'New', 'Year']
>>>
You can see the help of the string function split.
>>> help(''.split)
Help on built-in function split:
split(...)
S.split([sep [,maxsplit]]) -> list of strings
Return a list of the words in the string S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is a separator and empty strings are removed
from the result.
>>>
See the split method for the string.
"Happy New Year".split()
This will produce your array.