したがって、この童謡は、各行に印刷コードを繰り返すだけでなく、関数を使用して記述する必要があります。歌詞は以下にあり、今までのものも含めました。次に何をすればいいですか?
ハエを飲み込んだおばあさんがいました。
彼女がなぜハエを飲み込んだのかはわかりません。
おそらく彼女は死ぬでしょう。クモを飲み込んだ
おばあさんがいました。
彼女はハエを捕まえるためにクモを飲み込んだ.
彼女がなぜハエを飲み込んだのかはわかりません。
おそらく彼女は死ぬでしょう。鳥を飲み込んだおばあさんがいました。
鳥を飲み込むなんてばかげている。
彼女はその鳥を飲み込み、クモを捕まえよ
うとしました。
彼女はハエを捕まえるためにクモを飲み込んだ.
彼女がなぜハエを飲み込んだのかはわかりません。
おそらく彼女は死ぬでしょう。猫を飲み込んだおばあさんがいました。
猫を飲み込むことを想像してみてください。
彼女は鳥を捕まえるために猫を飲み込んだ。
彼女はその鳥を飲み込み、クモを捕まえよ
うとしました。
彼女はハエを捕まえるためにクモを飲み込んだ.
彼女がなぜハエを飲み込んだのかはわかりません。
おそらく彼女は死ぬでしょう。犬を飲み込んだおばあさんがいました。
私の、犬を飲み込むなんて豚です。
彼女は猫を捕まえるために犬を飲み込んだ。
彼女は鳥を捕まえるために猫を飲み込んだ。
彼女はその鳥を飲み込み、クモを捕まえよ
うとしました。
彼女はハエを捕まえるためにクモを飲み込んだ.
彼女がなぜハエを飲み込んだのかはわかりません。
おそらく彼女は死ぬでしょう。馬を飲み込んだおばあさんがいました。
もちろん、彼女は死んでいます。
これまでのところ、私は持っています:
def main():
title() # print the title
verse1() # fly verse
verse2() # spider verse
verse3() # bird verse
verse4() # cat verse
verse5() # dog verse
lastverse() # horse verse
there was an old lady who swolled a %
# call main
main()