splitは、空白区切りの文字列をリストにすることができる。

print('apple banana'.split()) python/split.py at main · ki-hi-ro/pytho…