def say(word, times, period): message = word * times + period print(message) say("こんにちは", 3, "。") say("なんで", times=2, period="?") say(period="!", times=4, word="ワン") # プログラム7-8(キーワード引数)