Python3で配列の要素数、配列の要素の表示、文字列分割のプログラムを実装しました
str = "Hello paiza"
#スペース区切りの文字列を分割する
array1 = str.split(' ')
#配列の要素数を取得する
num = len(array1)
#ループ文で表示する
for i in range(num):
print(array1[i])
split関数で文字列を分割して配列に格納します。
len関数を使って配列の要素数を取得します
for文で配列の要素順に表示します。